diff options
Diffstat (limited to 'shell/e-shortcuts.c')
-rw-r--r-- | shell/e-shortcuts.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/e-shortcuts.c b/shell/e-shortcuts.c index 09474e9491..0fa7b27f61 100644 --- a/shell/e-shortcuts.c +++ b/shell/e-shortcuts.c @@ -379,8 +379,11 @@ destroy (GtkObject *object) shortcuts = E_SHORTCUTS (object); priv = shortcuts->priv; - gtk_object_unref (GTK_OBJECT (priv->storage_set)); - gtk_object_unref (GTK_OBJECT (priv->folder_type_repository)); + if (priv->storage_set != NULL) + gtk_object_unref (GTK_OBJECT (priv->storage_set)); + + if (priv->folder_type_repository != NULL) + gtk_object_unref (GTK_OBJECT (priv->folder_type_repository)); unload_shortcuts (shortcuts); |