From 71549af0890ffb5f7eae01c40d7f334d31a8b3f3 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 10 Aug 2010 22:58:11 +0200 Subject: [PATCH] Disconnect insertion when MidoriHistory finalizes --- panels/midori-history.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panels/midori-history.c b/panels/midori-history.c index f681ddc3..17f79e3d 100644 --- a/panels/midori-history.c +++ b/panels/midori-history.c @@ -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); }