aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/child-leakage.patch
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2010-05-20 08:41:36 -0400
committerKen VanDine <ken.vandine@canonical.com>2010-05-20 08:41:36 -0400
commit1e43a9194554911cc0a2a4b7149058f376bfcb8b (patch)
tree1c4df331e01d90f39efba19f02429db3c6c41379 /debian/patches/child-leakage.patch
parent86518f0077d21a11d110aefb2b5f5f1f6f41ec86 (diff)
downloadlibayatana-appindicator-1e43a9194554911cc0a2a4b7149058f376bfcb8b.tar.gz
libayatana-appindicator-1e43a9194554911cc0a2a4b7149058f376bfcb8b.tar.bz2
libayatana-appindicator-1e43a9194554911cc0a2a4b7149058f376bfcb8b.zip
* debian/patches/child-leakage.patch
- Fixes a memory leak (LP: #569273)
Diffstat (limited to 'debian/patches/child-leakage.patch')
-rw-r--r--debian/patches/child-leakage.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/child-leakage.patch b/debian/patches/child-leakage.patch
new file mode 100644
index 0000000..35176ff
--- /dev/null
+++ b/debian/patches/child-leakage.patch
@@ -0,0 +1,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
+