diff options
author | Ted Gould <ted@gould.cx> | 2010-05-20 14:05:41 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-05-20 14:05:41 -0500 |
commit | 22423f9238b79470dcd77ea283d5ae6a380d0ebf (patch) | |
tree | 5064e717b400f4c49478009d68672565e220d2d9 /src/libappindicator | |
parent | 2c90c6c9724edd3d6a55015195159d2e1e997bf2 (diff) | |
parent | 8566afcd564d10cc11be09bba56e02b78df101e7 (diff) | |
download | ayatana-indicator-application-22423f9238b79470dcd77ea283d5ae6a380d0ebf.tar.gz ayatana-indicator-application-22423f9238b79470dcd77ea283d5ae6a380d0ebf.tar.bz2 ayatana-indicator-application-22423f9238b79470dcd77ea283d5ae6a380d0ebf.zip |
Fixing the ref leakage of a child object.
Diffstat (limited to 'src/libappindicator')
-rw-r--r-- | src/libappindicator/app-indicator.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c index 132e279..f7e121b 100644 --- a/src/libappindicator/app-indicator.c +++ b/src/libappindicator/app-indicator.c @@ -1408,6 +1408,12 @@ container_iterate (GtkWidget *widget, DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK (activate_menuitem), widget); dbusmenu_menuitem_child_append (root, child); + + /* Get rid of initial ref now that the root is + holding the object */ + g_object_unref(child); + + return; } static void |