From 9b665c1a82813d17deb3c50d357bc60f13d041dc Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 6 Mar 2003 12:44:37 +0000 Subject: ref the CalClient. (notify_dialog_cb): unref the CalClient. 2003-03-06 Rodrigo Moya * gui/alarm-queue.c (display_notification): ref the CalClient. (notify_dialog_cb): unref the CalClient. svn path=/trunk/; revision=20186 --- calendar/ChangeLog | 5 +++++ calendar/gui/alarm-notify/alarm-queue.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 0e31de8a5f..4d5997f414 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2003-03-06 Rodrigo Moya + + * gui/alarm-queue.c (display_notification): ref the CalClient. + (notify_dialog_cb): unref the CalClient. + 2003-03-06 Rodrigo Moya * gui/alarm-notify/alarm-notify-dialog.[ch] diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index b5644e132f..50a36fe4f1 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -700,6 +700,7 @@ notify_dialog_cb (AlarmNotifyResult result, int snooze_mins, gpointer data) remove_queued_alarm (c->cqa, c->alarm_id); g_object_unref (c->comp); + g_object_unref (c->client); g_free (c); } @@ -758,6 +759,7 @@ display_notification (time_t trigger, CompQueuedAlarms *cqa, c->alarm_id = alarm_id; c->comp = cal_component_clone (comp); c->client = c->cqa->parent_client->client; + g_object_ref (c->client); if (!(c->dialog = alarm_notify_dialog (trigger, qa->instance->occur_start, qa->instance->occur_end, -- cgit v1.2.3