aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-18 08:38:39 -0600
committerTed Gould <ted@gould.cx>2010-02-18 08:38:39 -0600
commit536034bb020f39dcf45d9a0d636f3f5dbd55deb7 (patch)
treee3bce55a7aae8f364a16044b7e27a3bb92107806
parent17b4a50fb7468506c371ae6429238afc9fdcfb2c (diff)
downloadayatana-indicator-messages-536034bb020f39dcf45d9a0d636f3f5dbd55deb7.tar.gz
ayatana-indicator-messages-536034bb020f39dcf45d9a0d636f3f5dbd55deb7.tar.bz2
ayatana-indicator-messages-536034bb020f39dcf45d9a0d636f3f5dbd55deb7.zip
Setting the listener to NULL after unrefing it.
-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 b55de2f..8e1c50f 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -147,6 +147,7 @@ app_menu_item_dispose (GObject *object)
if (priv->listener != NULL) {
g_signal_handlers_disconnect_by_func(G_OBJECT(priv->listener), count_changed, self);
g_object_unref(priv->listener);
+ priv->listener = NULL;
}
if (priv->shortcuts != NULL) {