diff options
author | Ted Gould <ted@gould.cx> | 2011-09-23 16:04:37 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-09-23 16:04:37 -0500 |
commit | b39934fcefb0097d2727fa6c79a13326c217c544 (patch) | |
tree | ec7d608e48d6518c4558902ddd5ee1dfca2923e5 /libdbusmenu-glib | |
parent | 451acabd0340c1f0196ec0fe8a6ef62ead4e77f9 (diff) | |
parent | cb2a9b92c3a978e540f4d9cc8e5687d121db1895 (diff) | |
download | libdbusmenu-b39934fcefb0097d2727fa6c79a13326c217c544.tar.gz libdbusmenu-b39934fcefb0097d2727fa6c79a13326c217c544.tar.bz2 libdbusmenu-b39934fcefb0097d2727fa6c79a13326c217c544.zip |
Fix ref leaks 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; |