diff options
author | JP Rosevear <jpr@ximian.com> | 2001-05-12 03:41:27 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-05-12 03:41:27 +0800 |
commit | b4796b63763b08f13aa77f51f679d0b660bf48a4 (patch) | |
tree | 797446b6b1d99078df17bba4198abc669d66f7a3 /shell/e-component-registry.c | |
parent | cc779fdf6febc880ca12f13a7fa5ee197df1bf98 (diff) | |
download | gsoc2013-evolution-b4796b63763b08f13aa77f51f679d0b660bf48a4.tar gsoc2013-evolution-b4796b63763b08f13aa77f51f679d0b660bf48a4.tar.gz gsoc2013-evolution-b4796b63763b08f13aa77f51f679d0b660bf48a4.tar.bz2 gsoc2013-evolution-b4796b63763b08f13aa77f51f679d0b660bf48a4.tar.lz gsoc2013-evolution-b4796b63763b08f13aa77f51f679d0b660bf48a4.tar.xz gsoc2013-evolution-b4796b63763b08f13aa77f51f679d0b660bf48a4.tar.zst gsoc2013-evolution-b4796b63763b08f13aa77f51f679d0b660bf48a4.zip |
component_new refs the object itself, so unref ours when we finish with it
2001-05-11 JP Rosevear <jpr@ximian.com>
* e-component-registry.c (register_component): component_new refs
the object itself, so unref ours when we finish with it
* e-shell.c (e_shell_construct): There is no need to explicitly
ref the folder type registry, storage set and shortcuts because we
are the creator and hold the initial ref count of 1.
svn path=/trunk/; revision=9766
Diffstat (limited to 'shell/e-component-registry.c')
-rw-r--r-- | shell/e-component-registry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c index f316c3fbf2..2106432a78 100644 --- a/shell/e-component-registry.c +++ b/shell/e-component-registry.c @@ -177,7 +177,8 @@ register_component (EComponentRegistry *component_registry, component = component_new (id, client); g_hash_table_insert (priv->component_id_to_component, component->id, component); - + bonobo_object_unref (BONOBO_OBJECT (client)); + for (i = 0; i < supported_types->_length; i++) { const GNOME_Evolution_FolderType *type; |