diff options
Diffstat (limited to 'src/app-menu-item.c')
-rw-r--r-- | src/app-menu-item.c | 4 |
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) { |