aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-05-12 03:41:27 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-05-12 03:41:27 +0800
commitb4796b63763b08f13aa77f51f679d0b660bf48a4 (patch)
tree797446b6b1d99078df17bba4198abc669d66f7a3 /shell/e-shell.c
parentcc779fdf6febc880ca12f13a7fa5ee197df1bf98 (diff)
downloadgsoc2013-evolution-b4796b63763b08f13aa77f51f679d0b660bf48a4.tar.gz
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-shell.c')
-rw-r--r--shell/e-shell.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index e94b1e2cbe..4dc33de06d 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -764,9 +764,6 @@ e_shell_construct (EShell *shell,
priv->folder_type_registry = e_folder_type_registry_new ();
priv->storage_set = e_storage_set_new (shell->priv->folder_type_registry);
- gtk_object_ref (GTK_OBJECT (priv->folder_type_registry));
- gtk_object_ref (GTK_OBJECT (priv->storage_set));
-
/* CORBA storages must be set up before the components, because otherwise components
cannot register their own storages. */
if (! setup_corba_storages (shell))
@@ -794,8 +791,6 @@ e_shell_construct (EShell *shell,
if (priv->shortcuts == NULL)
g_warning ("Cannot load shortcuts -- %s", shortcut_path);
- else
- gtk_object_ref (GTK_OBJECT (priv->shortcuts));
g_free (shortcut_path);