From 58d8f86e64d42782ac80ec4ed40b5269a3493454 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 1 Jun 2001 23:31:59 +0000 Subject: ditto 2001-06-01 JP Rosevear * gui/e-itip-control.c (e_itip_control_factory_init): ditto * gui/tasks-control-factory.c (tasks_control_factory_init): auto_exit_unref the factory svn path=/trunk/; revision=10087 --- calendar/ChangeLog | 7 +++++++ calendar/gui/e-itip-control.c | 5 ++++- calendar/gui/tasks-control-factory.c | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index bb76b0c8fa..b39133a852 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2001-06-01 JP Rosevear + + * gui/e-itip-control.c (e_itip_control_factory_init): ditto + + * gui/tasks-control-factory.c (tasks_control_factory_init): + auto_exit_unref the factory + 2001-06-01 Ettore Perazzoli * gui/Makefile.am (evolution_calendar_LDADD): Add `$(DB3_LDADD)'. diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 473e033709..425155a9f4 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -33,6 +33,8 @@ #include #include #include +#include + #include #include #include @@ -1075,7 +1077,8 @@ e_itip_control_factory_init (void) factory = bonobo_generic_factory_new ( "OAFIID:GNOME_Evolution_Calendar_iTip_ControlFactory", e_itip_control_factory, NULL); - + bonobo_running_context_auto_exit_unref (BONOBO_OBJECT (factory));; + if (factory == NULL) g_error ("I could not register an iTip control factory."); } diff --git a/calendar/gui/tasks-control-factory.c b/calendar/gui/tasks-control-factory.c index 8f884f4f6f..2d40877cf5 100644 --- a/calendar/gui/tasks-control-factory.c +++ b/calendar/gui/tasks-control-factory.c @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -53,6 +54,7 @@ tasks_control_factory_init (void) factory = bonobo_generic_factory_new (TASKS_CONTROL_FACTORY_ID, tasks_control_factory_fn, NULL); + bonobo_running_context_auto_exit_unref (BONOBO_OBJECT (factory)); if (factory == NULL) g_error ("I could not register a Tasks control factory."); -- cgit v1.2.3