aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 26a556de96..f2a5554103 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -487,7 +487,8 @@ 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->storage_set ));
+ 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. */
@@ -506,6 +507,8 @@ 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);
}