diff options
author | Michael Terry <mike@mterry.name> | 2011-03-14 09:37:23 -0400 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2011-03-14 09:37:23 -0400 |
commit | f2f415d46ee0ac9f0d03d92b61fbb650c0d91485 (patch) | |
tree | d06ff48507b46edb81a617cb2f941b95437c74f5 /src | |
parent | 0f9fc0fa4eba3103c0c2a0d2168167997c545a79 (diff) | |
download | libayatana-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
Diffstat (limited to 'src')
-rw-r--r-- | src/app-indicator.c | 2 |
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); |