aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-06-02 07:31:59 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-06-02 07:31:59 +0800
commit58d8f86e64d42782ac80ec4ed40b5269a3493454 (patch)
tree535abfa127000e016504cb45a1c05838a89d3bc7 /calendar/gui
parent06ebf6a67ec10e399ad041f666deb497924803cd (diff)
downloadgsoc2013-evolution-58d8f86e64d42782ac80ec4ed40b5269a3493454.tar.gz
gsoc2013-evolution-58d8f86e64d42782ac80ec4ed40b5269a3493454.tar.zst
gsoc2013-evolution-58d8f86e64d42782ac80ec4ed40b5269a3493454.zip
ditto
2001-06-01 JP Rosevear <jpr@ximian.com> * 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
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.");