From 8225fbdd818e58e6e1a68070acd31f37f4c3e90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Tue, 10 May 2016 11:55:22 +0200 Subject: [PATCH] Fix crash when closing profile buffers. --- src/twc-profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twc-profile.c b/src/twc-profile.c index 1cbcbf8..e2e4fea 100644 --- a/src/twc-profile.c +++ b/src/twc-profile.c @@ -126,7 +126,7 @@ int twc_profile_buffer_close_callback(const void *pointer, void *data, struct t_gui_buffer *buffer) { - struct t_twc_profile *profile = data; + struct t_twc_profile *profile = (void *)pointer; profile->buffer = NULL; twc_profile_unload(profile);