From d56b79b3c00cd509efb71f94a2c6818856101b36 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Sun, 6 Mar 2011 15:21:38 +0100 Subject: [PATCH] Little fix in sc_toggle_index --- shortcuts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcuts.c b/shortcuts.c index 7bbd2e6..aa8b664 100644 --- a/shortcuts.c +++ b/shortcuts.c @@ -285,7 +285,7 @@ sc_toggle_index(girara_session_t* session, girara_argument_t* argument, unsigned error_free: if (Zathura.UI.index != NULL) { - g_object_unref(Zathura.UI.index); + g_object_ref_sink(Zathura.UI.index); Zathura.UI.index = NULL; }