aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-05-20 14:07:03 -0500
committerTed Gould <ted@gould.cx>2010-05-20 14:07:03 -0500
commitea79d7fd68a100704d2b1ff883497fef0ce8c3a2 (patch)
tree5064e717b400f4c49478009d68672565e220d2d9 /src
parentd46943668a613b128497fbe3bf0da8ffbfd9e261 (diff)
parent8566afcd564d10cc11be09bba56e02b78df101e7 (diff)
downloadlibayatana-appindicator-ea79d7fd68a100704d2b1ff883497fef0ce8c3a2.tar.gz
libayatana-appindicator-ea79d7fd68a100704d2b1ff883497fef0ce8c3a2.tar.bz2
libayatana-appindicator-ea79d7fd68a100704d2b1ff883497fef0ce8c3a2.zip
Stopping the leakage of children.
Diffstat (limited to 'src')
-rw-r--r--src/libappindicator/app-indicator.c6
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