aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-08-20 10:58:17 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-08-20 10:58:17 +0800
commit4d477c44974bf1f69b17c8eec5f2e802876c56b1 (patch)
tree755195dc230a96e85dbe816634032cd623eddf88 /shell/e-shell.c
parent8a11c38be74c6a51150ab67d06193063a67e7ef0 (diff)
downloadgsoc2013-evolution-4d477c44974bf1f69b17c8eec5f2e802876c56b1.tar.gz
gsoc2013-evolution-4d477c44974bf1f69b17c8eec5f2e802876c56b1.tar.zst
gsoc2013-evolution-4d477c44974bf1f69b17c8eec5f2e802876c56b1.zip
Put the bonobo_object_release_unref() for the db at the top in an attempt
* e-shell.c (destroy): Put the bonobo_object_release_unref() for the db at the top in an attempt to fix #7542. svn path=/trunk/; revision=12238
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 357236ba7f..26f5f6fb78 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -704,6 +704,11 @@ destroy (GtkObject *object)
shell = E_SHELL (object);
priv = shell->priv;
+ if (shell->priv->db != CORBA_OBJECT_NIL) {
+ bonobo_object_release_unref (shell->priv->db, NULL);
+ shell->priv->db = CORBA_OBJECT_NIL;
+ }
+
if (priv->iid != NULL)
oaf_active_server_unregister (priv->iid, bonobo_object_corba_objref (BONOBO_OBJECT (shell)));
@@ -750,9 +755,6 @@ destroy (GtkObject *object)
g_list_free (priv->views);
- if (shell->priv->db != CORBA_OBJECT_NIL)
- bonobo_object_release_unref (shell->priv->db, NULL);
-
/* No unreffing for these as they are aggregate. */
/* bonobo_object_unref (BONOBO_OBJECT (priv->corba_storage_registry)); */
/* bonobo_object_unref (BONOBO_OBJECT (priv->activity_handler)); */