From: P. F. Chimento Date: Fri, 19 Nov 2010 21:58:57 +0000 (+0100) Subject: Fixed crash in ChimaraIF::command X-Git-Tag: v0.9~168 X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=commitdiff_plain;h=481077fe3d12bab741ad10594bf213fe97862ca8 Fixed crash in ChimaraIF::command Fixed the threading bug in ChimaraIF::command. --- diff --git a/libchimara/chimara-if.c b/libchimara/chimara-if.c index c669804..efbd529 100644 --- a/libchimara/chimara-if.c +++ b/libchimara/chimara-if.c @@ -104,7 +104,9 @@ chimara_if_waiting(ChimaraGlk *glk) gchar *response = g_string_free(priv->response, FALSE); priv->response = g_string_new(""); + gdk_threads_enter(); g_signal_emit_by_name(glk, "command", priv->input, response); + gdk_threads_leave(); g_free(priv->input); g_free(response);