aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-04 15:32:22 -0600
committerTed Gould <ted@gould.cx>2011-02-04 15:32:22 -0600
commit6da530ab489871e8da45db87d7ba922fdb9e4a56 (patch)
tree27ffe1cc8c9f847151bf95de9f560bc85fc151eb
parent9c3aeee0b80f691a468812b097fda30332676e20 (diff)
downloadayatana-indicator-datetime-6da530ab489871e8da45db87d7ba922fdb9e4a56.tar.gz
ayatana-indicator-datetime-6da530ab489871e8da45db87d7ba922fdb9e4a56.tar.bz2
ayatana-indicator-datetime-6da530ab489871e8da45db87d7ba922fdb9e4a56.zip
Removing a ref on the item
-rw-r--r--src/datetime-service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 736e89e..624bbbf 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -325,6 +325,7 @@ update_appointment_menu_items (gpointer user_data) {
appointments = g_list_remove(appointments, item);
dbusmenu_menuitem_child_delete(root, DBUSMENU_MENUITEM(item));
//g_free(item); freeing makes it crash :/ is that a double free from child delete?
+ g_object_unref(G_OBJECT(item));
item = NULL;
}
appointments = NULL;