aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-09 21:28:19 -0600
committerTed Gould <ted@gould.cx>2010-02-09 21:28:19 -0600
commit174f2c30a0bc29ac33a70b4bfeec164d55708065 (patch)
tree75899c95064900ca05adc85e0340932aa6a31a4d /src
parentbfaf7c901b675655aec0fcb1c4d5ce6e059a9a80 (diff)
parentdcdb9f78884979c5e38a81fb222ae642fe99d142 (diff)
downloadayatana-indicator-messages-174f2c30a0bc29ac33a70b4bfeec164d55708065.tar.gz
ayatana-indicator-messages-174f2c30a0bc29ac33a70b4bfeec164d55708065.tar.bz2
ayatana-indicator-messages-174f2c30a0bc29ac33a70b4bfeec164d55708065.zip
Property disconnect the count changed signal.
Diffstat (limited to 'src')
-rw-r--r--src/app-menu-item.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index 71860ea..5fc2a9c 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -110,17 +110,21 @@ app_menu_item_init (AppMenuItem *self)
return;
}
+/* Disconnect the count_changed signal and unref the listener */
static void
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);
}
+/* Free the memory used by our type, desktop file and application
+ info structures. */
static void
app_menu_item_finalize (GObject *object)
{