[gnome-builder] project-tree: release variant in unhandled case



commit b116d4b94e3ada0c17d26064f77ce95413b3e349
Author: Christian Hergert <christian hergert me>
Date:   Mon Apr 13 15:32:30 2015 -0700

    project-tree: release variant in unhandled case

 src/editor/gb-editor-workspace-actions.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-workspace-actions.c b/src/editor/gb-editor-workspace-actions.c
index 6cf801e..669743b 100644
--- a/src/editor/gb-editor-workspace-actions.c
+++ b/src/editor/gb-editor-workspace-actions.c
@@ -67,6 +67,11 @@ gb_editor_workspace_actions_show_sidebar (GSimpleAction *action,
       g_simple_action_set_state (action, variant);
       g_settings_set_boolean (self->project_tree_settings, "show", TRUE);
     }
+  else
+    {
+      g_variant_ref_sink (variant);
+      g_variant_unref (variant);
+    }
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]