From 11b4c8654dd37c55ce2e61c5dad3dab6c0d13ba3 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 16 Dec 2003 19:07:06 +0000 Subject: return a reference to the alarm_notify_service, not NULL and ref the 2003-12-16 Rodrigo Moya * gui/alarm-notify/notify-main.c (alarm_notify_factory_fn): return a reference to the alarm_notify_service, not NULL and ref the object before returning it. svn path=/trunk/; revision=23949 --- calendar/ChangeLog | 3 ++- calendar/gui/alarm-notify/notify-main.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index a835126447..e5c330a325 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,7 +1,8 @@ 2003-12-16 Rodrigo Moya * gui/alarm-notify/notify-main.c (alarm_notify_factory_fn): return - a reference to the alarm_notify_service, not NULL. + a reference to the alarm_notify_service, not NULL and ref the object + before returning it. 2003-12-15 JP Rosevear diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c index 01cf3b3a53..9c9af7c62d 100644 --- a/calendar/gui/alarm-notify/notify-main.c +++ b/calendar/gui/alarm-notify/notify-main.c @@ -103,7 +103,9 @@ alarm_notify_factory_fn (BonoboGenericFactory *factory, const char *component_id g_assert (alarm_notify_service != NULL); } - return alarm_notify_service; + bonobo_object_ref (BONOBO_OBJECT (alarm_notify_service)); + + return BONOBO_OBJECT (alarm_notify_service); } /* Loads the calendars that the alarm daemon has been told to load in the past */ -- cgit v1.2.3