From 3ccc6321cdb356a6ef00f3a16a76ea5a161c59b8 Mon Sep 17 00:00:00 2001 From: Monsta Date: Fri, 21 Aug 2015 19:21:58 +0300 Subject: logview: don't clear the active log ref immediately on close from https://git.gnome.org/browse/gnome-system-log/commit/?id=febc1baa30ee4035e20d513c2bd77a579f1d8fea --- logview/logview-manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/logview/logview-manager.c b/logview/logview-manager.c index 2448468e..a87da3ec 100644 --- a/logview/logview-manager.c +++ b/logview/logview-manager.c @@ -406,8 +406,7 @@ logview_manager_close_active_log (LogviewManager *manager) g_object_unref (file); - /* we own two refs to the active log; one is inside the hash table */ - g_object_unref (active_log); + /* drop the hash table ref */ g_hash_table_remove (manager->priv->logs, log_uri); g_free (log_uri); -- cgit v1.2.1