aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-corba-storage.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-05-15 02:39:22 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-05-15 02:39:22 +0800
commit74ee7fe6ae45bd9b498bb926aa0be181f68c48f2 (patch)
tree587e5958bcfcc5fc5b3957339b8a629b8e6132f0 /shell/e-corba-storage.c
parent6e8895d6e8761cb44dbc15aa70f3304220727239 (diff)
downloadgsoc2013-evolution-74ee7fe6ae45bd9b498bb926aa0be181f68c48f2.tar
gsoc2013-evolution-74ee7fe6ae45bd9b498bb926aa0be181f68c48f2.tar.gz
gsoc2013-evolution-74ee7fe6ae45bd9b498bb926aa0be181f68c48f2.tar.bz2
gsoc2013-evolution-74ee7fe6ae45bd9b498bb926aa0be181f68c48f2.tar.lz
gsoc2013-evolution-74ee7fe6ae45bd9b498bb926aa0be181f68c48f2.tar.xz
gsoc2013-evolution-74ee7fe6ae45bd9b498bb926aa0be181f68c48f2.tar.zst
gsoc2013-evolution-74ee7fe6ae45bd9b498bb926aa0be181f68c48f2.zip
release the interface if we got it
2003-05-14 JP Rosevear <jpr@ximian.com> * e-shell.c (save_settings_for_component): release the interface if we got it * e-shell-view.c: include bonobo-exception.h (impl_dispose): release and unref the shell view corba interface (init): init to CORBA_OBJECT_NIL (e_shell_view_get_corba_interface): return the corba interface (setup_corba_interface): release the existing shell view, add as an interface and then query to get it back (get_view_for_uri): release and unref the control once we create the widget with it * e-corba-storage.c (storage_listener_servant_new): don't ref ourselves (storage_listener_servant_free): don't unref ourselves (impl_dispose): free the servant info * e-corba-storage-registry.c (impl_StorageRegistry_getStorageByName): we need to ref as well as duplicate since we didn't create the storage here svn path=/trunk/; revision=21176
Diffstat (limited to 'shell/e-corba-storage.c')
-rw-r--r--shell/e-corba-storage.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/e-corba-storage.c b/shell/e-corba-storage.c
index b7ab36c3f8..185b4093a9 100644
--- a/shell/e-corba-storage.c
+++ b/shell/e-corba-storage.c
@@ -77,7 +77,6 @@ storage_listener_servant_new (ECorbaStorage *corba_storage)
servant->servant.vepv = &storage_listener_vepv;
- g_object_ref (corba_storage);
servant->storage = E_STORAGE (corba_storage);
return servant;
@@ -86,8 +85,6 @@ storage_listener_servant_new (ECorbaStorage *corba_storage)
static void
storage_listener_servant_free (StorageListenerServant *servant)
{
- g_object_unref (servant->storage);
-
g_free (servant);
}
@@ -272,6 +269,7 @@ impl_dispose (GObject *object)
CORBA_free (object_id);
+ storage_listener_servant_free (priv->storage_listener_servant);
priv->storage_listener_servant = NULL;
}