[gtk+/wip/gmenu] Don't call g_object_unref on a variant



commit 7d17ed82de5a2ddd19e51eb1177312d6de450acb
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 30 16:33:32 2011 -0500

    Don't call g_object_unref on a variant
    
    Tsk, tsk...

 examples/bloatpad.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/examples/bloatpad.c b/examples/bloatpad.c
index 74eac31..d6e549b 100644
--- a/examples/bloatpad.c
+++ b/examples/bloatpad.c
@@ -24,7 +24,7 @@ activate_toggle (GSimpleAction *action,
 
   state = g_action_get_state (G_ACTION (action));
   g_action_change_state (G_ACTION (action), g_variant_new_boolean (!g_variant_get_boolean (state)));
-  g_object_unref (state);
+  g_variant_unref (state);
 }
 
 static void



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