From b4796b63763b08f13aa77f51f679d0b660bf48a4 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 11 May 2001 19:41:27 +0000 Subject: component_new refs the object itself, so unref ours when we finish with it 2001-05-11 JP Rosevear * 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 --- shell/e-shell.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'shell/e-shell.c') 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); -- cgit v1.2.3