aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index 28550d55f7..b650f2e36b 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -2167,9 +2167,11 @@ alarm_queue_remove_client (ECal *client, gboolean immediately)
msg->data = list;
d(printf("%s:%d (alarm_queue_remove_client) - Posting a task\n",__FILE__, __LINE__));
- if (immediately)
+ if (immediately) {
alarm_queue_remove_async (NULL, msg, NULL);
- else
+ g_free (list);
+ g_free (msg);
+ } else
e_thread_put(alarm_operation_thread, (EMsg *)msg);
}