diff options
author | Michael Terry <michael.terry@canonical.com> | 2011-09-23 13:53:38 -0400 |
---|---|---|
committer | Michael Terry <michael.terry@canonical.com> | 2011-09-23 13:53:38 -0400 |
commit | cb2a9b92c3a978e540f4d9cc8e5687d121db1895 (patch) | |
tree | ec7d608e48d6518c4558902ddd5ee1dfca2923e5 /libdbusmenu-glib | |
parent | 451acabd0340c1f0196ec0fe8a6ef62ead4e77f9 (diff) | |
download | libdbusmenu-cb2a9b92c3a978e540f4d9cc8e5687d121db1895.tar.gz libdbusmenu-cb2a9b92c3a978e540f4d9cc8e5687d121db1895.tar.bz2 libdbusmenu-cb2a9b92c3a978e540f4d9cc8e5687d121db1895.zip |
unref added children in proxy code
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/menuitem-proxy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdbusmenu-glib/menuitem-proxy.c b/libdbusmenu-glib/menuitem-proxy.c index ae6a334..fdbd892 100644 --- a/libdbusmenu-glib/menuitem-proxy.c +++ b/libdbusmenu-glib/menuitem-proxy.c @@ -188,6 +188,7 @@ proxy_item_child_added (DbusmenuMenuitem * parent, DbusmenuMenuitem * child, gui DbusmenuMenuitemProxy * pmi = DBUSMENU_MENUITEM_PROXY(user_data); DbusmenuMenuitemProxy * child_pmi = dbusmenu_menuitem_proxy_new(child); dbusmenu_menuitem_child_add_position(DBUSMENU_MENUITEM(pmi), DBUSMENU_MENUITEM(child_pmi), position); + g_object_unref (child_pmi); return; } @@ -283,6 +284,7 @@ add_menuitem (DbusmenuMenuitemProxy * pmi, DbusmenuMenuitem * mi) for (child = children; child != NULL; child = g_list_next(child)) { DbusmenuMenuitemProxy * child_pmi = dbusmenu_menuitem_proxy_new(DBUSMENU_MENUITEM(child->data)); dbusmenu_menuitem_child_append(DBUSMENU_MENUITEM(pmi), DBUSMENU_MENUITEM(child_pmi)); + g_object_unref (child_pmi); } return; |