aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/child-leakage.patch
blob: 35176ff3c4fd6c7e747dbde85a7511a97bc2baee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
=== modified file 'src/libappindicator/app-indicator.c'
--- src/libappindicator/app-indicator.c	2010-04-01 20:23:36 +0000
+++ src/libappindicator/app-indicator.c	2010-05-19 18:23:24 +0000
@@ -1408,6 +1408,12 @@
                     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