aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-03-14 09:37:23 -0400
committerMichael Terry <mike@mterry.name>2011-03-14 09:37:23 -0400
commitf2f415d46ee0ac9f0d03d92b61fbb650c0d91485 (patch)
treed06ff48507b46edb81a617cb2f941b95437c74f5
parent0f9fc0fa4eba3103c0c2a0d2168167997c545a79 (diff)
downloadlibayatana-appindicator-f2f415d46ee0ac9f0d03d92b61fbb650c0d91485.tar.gz
libayatana-appindicator-f2f415d46ee0ac9f0d03d92b61fbb650c0d91485.tar.bz2
libayatana-appindicator-f2f415d46ee0ac9f0d03d92b61fbb650c0d91485.zip
sink ref to passed-in menu in set_menu() to avoid leaks
-rw-r--r--src/app-indicator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index fc640da..347e168 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -1949,7 +1949,7 @@ app_indicator_set_menu (AppIndicator *self, GtkMenu *menu)
}
priv->menu = GTK_WIDGET (menu);
- g_object_ref (priv->menu);
+ g_object_ref_sink (priv->menu);
setup_dbusmenu (self);