Don't disconnect handler from image after 'menu' plugin button was destroyed.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 14 Aug 2014 19:53:11 +0000 (22:53 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 16 Aug 2014 16:23:39 +0000 (19:23 +0300)
That attempt will result in illegal memory access.

src/plugins/menu.c

index bfa3ffe..710c95f 100644 (file)
@@ -110,7 +110,7 @@ menu_destructor(gpointer user_data)
     if (m->show_system_menu_idle)
         g_source_remove(m->show_system_menu_idle);
 
-    g_signal_handler_disconnect(G_OBJECT(m->img), m->handler_id);
+    /* g_signal_handler_disconnect(G_OBJECT(m->img), m->handler_id); */
     g_signal_handlers_disconnect_matched(m->ds, G_SIGNAL_MATCH_FUNC, 0, 0, NULL,
                                          on_data_get, NULL);
     g_object_unref(G_OBJECT(m->ds));