Fix crash when closing profile buffers.

This commit is contained in:
Håvard Pettersson 2016-05-10 11:55:22 +02:00
parent 4ff7abb641
commit 8225fbdd81

View File

@ -126,7 +126,7 @@ int
twc_profile_buffer_close_callback(const void *pointer, void *data, twc_profile_buffer_close_callback(const void *pointer, void *data,
struct t_gui_buffer *buffer) struct t_gui_buffer *buffer)
{ {
struct t_twc_profile *profile = data; struct t_twc_profile *profile = (void *)pointer;
profile->buffer = NULL; profile->buffer = NULL;
twc_profile_unload(profile); twc_profile_unload(profile);