aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-09 13:30:17 -0600
committerTed Gould <ted@gould.cx>2010-02-09 13:30:17 -0600
commit5adf6408be296a141e044937e0fac617520f764b (patch)
treef41799d40ca444f4a3d38055fba975e9fc2295d8
parentbfaf7c901b675655aec0fcb1c4d5ce6e059a9a80 (diff)
downloadayatana-indicator-messages-5adf6408be296a141e044937e0fac617520f764b.tar.gz
ayatana-indicator-messages-5adf6408be296a141e044937e0fac617520f764b.tar.bz2
ayatana-indicator-messages-5adf6408be296a141e044937e0fac617520f764b.zip
Disconnecting the signal handler attached to the listener when we go away.
-rw-r--r--src/app-menu-item.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index 71860ea..2bdb7b1 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -116,6 +116,7 @@ app_menu_item_dispose (GObject *object)
AppMenuItem * self = APP_MENU_ITEM(object);
AppMenuItemPrivate * priv = APP_MENU_ITEM_GET_PRIVATE(self);
+ g_signal_handlers_disconnect_by_func(G_OBJECT(priv->listener), count_changed, self);
g_object_unref(priv->listener);
G_OBJECT_CLASS (app_menu_item_parent_class)->dispose (object);