]> spindle.queued.net Git - midori/commitdiff
Disconnect insertion when MidoriHistory finalizes
authorChristian Dywan <christian@twotoasts.de>
Tue, 10 Aug 2010 20:58:11 +0000 (22:58 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 10 Aug 2010 20:58:11 +0000 (22:58 +0200)
panels/midori-history.c

index f681ddc3dfe87cdd21cb14ee592f4023a22cdc71..17f79e3dfdd4ee1190289201a7500896ad4e2f33 100644 (file)
@@ -988,8 +988,8 @@ midori_history_finalize (GObject* object)
     if (history->app)
         g_object_unref (history->app);
 
-    /* FIXME: We don't unref items (last argument is FALSE) because
-       our reference counting is incorrect. */
+    g_signal_handlers_disconnect_by_func (history->array,
+        midori_history_add_item_cb, history);
     g_object_unref (history->array);
     katze_assign (history->filter, NULL);
 }