diff options
author | Ted Gould <ted@canonical.com> | 2009-08-21 16:27:59 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-21 16:27:59 -0500 |
commit | acf054710bea98ee0a63c72cf5e5bcbff8b9bc74 (patch) | |
tree | 9503734e5b94726859e9e31d05749b000a0d02c4 | |
parent | 286c51ca41139a2961cfe68a80a458ebf882bae9 (diff) | |
download | ayatana-indicator-messages-acf054710bea98ee0a63c72cf5e5bcbff8b9bc74.tar.gz ayatana-indicator-messages-acf054710bea98ee0a63c72cf5e5bcbff8b9bc74.tar.bz2 ayatana-indicator-messages-acf054710bea98ee0a63c72cf5e5bcbff8b9bc74.zip |
Now we're really killing these puppies! Don't cry, they weren't cuddly puppies.
-rw-r--r-- | src/messages-service.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index 8617c5d..384198a 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -853,6 +853,18 @@ destroy_launcher (gpointer data) } /* Full Destroy */ + g_free(appdir); + g_list_free(li->appdiritems); + + if (li->menuitem != NULL) { + dbusmenu_menuitem_property_set(DBUSMENU_MENUITEM(li->menuitem), "visible", "false"); + dbusmenu_menuitem_child_delete(root_menuitem, DBUSMENU_MENUITEM(li->menuitem)); + g_object_unref(G_OBJECT(li->menuitem)); + li->menuitem = NULL; + } + + launcherList = g_list_remove(launcherList, li); + g_free(li); return FALSE; } |