aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-itip-control.c5
-rw-r--r--calendar/gui/tasks-control-factory.c2
2 files changed, 6 insertions, 1 deletions
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 <bonobo/bonobo-generic-factory.h>
#include <bonobo/bonobo-persist-stream.h>
#include <bonobo/bonobo-stream-client.h>
+#include <bonobo/bonobo-running-context.h>
+
#include <glade/glade.h>
#include <ical.h>
#include <Evolution-Composer.h>
@@ -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 <config.h>
#include <bonobo/bonobo-control.h>
#include <bonobo/bonobo-generic-factory.h>
+#include <bonobo/bonobo-running-context.h>
#include <liboaf/liboaf.h>
@@ -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.");