aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-component-registry.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-12-05 02:05:41 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-12-05 02:05:41 +0800
commit51a6fc1a8f6369014d91801ffb88aa2fa6f65cd4 (patch)
tree62b226ac5900b6526d89298838f0d1970c532364 /shell/e-component-registry.c
parenteda5669ed3bd2dea528e30bab56070e9fa474264 (diff)
downloadgsoc2013-evolution-51a6fc1a8f6369014d91801ffb88aa2fa6f65cd4.tar.gz
gsoc2013-evolution-51a6fc1a8f6369014d91801ffb88aa2fa6f65cd4.tar.zst
gsoc2013-evolution-51a6fc1a8f6369014d91801ffb88aa2fa6f65cd4.zip
(component_free): Only invoke
wait_for_corba_object_to_die on components that are out-of-proc. svn path=/trunk/; revision=19006
Diffstat (limited to 'shell/e-component-registry.c')
-rw-r--r--shell/e-component-registry.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c
index fde3ef7e5d..2a69a974f7 100644
--- a/shell/e-component-registry.c
+++ b/shell/e-component-registry.c
@@ -1,7 +1,7 @@
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* e-component-registry.c
*
- * Copyright (C) 2000 Ximian, Inc.
+ * Copyright (C) 2000, 2001, 2002 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
@@ -145,7 +145,10 @@ component_free (Component *component)
g_object_unref (component->client);
- wait_for_corba_object_to_die ((Bonobo_Unknown) corba_shell_component, component->id);
+ /* If the component is out-of-proc, wait for the process to die first. */
+ if (bonobo_object (ORBit_small_get_servant (corba_shell_component)) == NULL)
+ wait_for_corba_object_to_die ((Bonobo_Unknown) corba_shell_component, component->id);
+
CORBA_Object_release (corba_shell_component, &ev);
e_free_string_list (component->folder_type_names);