aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-11-29 15:50:38 -0600
committerTed Gould <ted@gould.cx>2010-11-29 15:50:38 -0600
commit675693fe90c242c4dc9d54d7d3ed34be49d931cc (patch)
treeb717b924f133a285daa2a68c4c7f3399339e8cd8
parente3097b569710d3cb8466f229571dc632decd1671 (diff)
downloadlibdbusmenu-675693fe90c242c4dc9d54d7d3ed34be49d931cc.tar.gz
libdbusmenu-675693fe90c242c4dc9d54d7d3ed34be49d931cc.tar.bz2
libdbusmenu-675693fe90c242c4dc9d54d7d3ed34be49d931cc.zip
Ah, oops, we shouldn't unref these variants as they're kept in the hashtable, we have them as floating.
-rw-r--r--libdbusmenu-gtk/menuitem.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libdbusmenu-gtk/menuitem.c b/libdbusmenu-gtk/menuitem.c
index 1b8cab1..2251efc 100644
--- a/libdbusmenu-gtk/menuitem.c
+++ b/libdbusmenu-gtk/menuitem.c
@@ -201,12 +201,7 @@ dbusmenu_menuitem_property_set_shortcut (DbusmenuMenuitem * menuitem, guint key,
g_variant_builder_add_value(&builder, inside);
GVariant * outsidevariant = g_variant_builder_end(&builder);
- dbusmenu_menuitem_property_set_variant(menuitem, DBUSMENU_MENUITEM_PROP_SHORTCUT, outsidevariant);
-
- g_variant_unref(outsidevariant);
- g_variant_unref(inside);
-
- return TRUE;
+ return dbusmenu_menuitem_property_set_variant(menuitem, DBUSMENU_MENUITEM_PROP_SHORTCUT, outsidevariant);
}
/* Look at the closures in an accel group and find