summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-08-21 19:21:58 +0300
committerinfirit <[email protected]>2015-08-31 21:57:23 +0200
commit3ccc6321cdb356a6ef00f3a16a76ea5a161c59b8 (patch)
tree4d1006af286e59b8232ad89b49ad080334a89410
parente67c5165293a6950bc15642788d1b41b1e8d9c75 (diff)
downloadmate-utils-3ccc6321cdb356a6ef00f3a16a76ea5a161c59b8.tar.bz2
mate-utils-3ccc6321cdb356a6ef00f3a16a76ea5a161c59b8.tar.xz
logview: don't clear the active log ref immediately on close
from https://git.gnome.org/browse/gnome-system-log/commit/?id=febc1baa30ee4035e20d513c2bd77a579f1d8fea
-rw-r--r--logview/logview-manager.c3
1 files changed, 1 insertions, 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);