aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shortcuts.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-05-07 10:22:08 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-05-07 10:22:08 +0800
commitfe27ab117972b1d98792ee0c78abce0a3c4a0acb (patch)
treee62ce3cab9a074917276ffb2ab3ee91e56deb11d /shell/e-shortcuts.c
parent3219faad0c583cf44add809ded9183ccc9c4f302 (diff)
downloadgsoc2013-evolution-fe27ab117972b1d98792ee0c78abce0a3c4a0acb.tar
gsoc2013-evolution-fe27ab117972b1d98792ee0c78abce0a3c4a0acb.tar.gz
gsoc2013-evolution-fe27ab117972b1d98792ee0c78abce0a3c4a0acb.tar.bz2
gsoc2013-evolution-fe27ab117972b1d98792ee0c78abce0a3c4a0acb.tar.lz
gsoc2013-evolution-fe27ab117972b1d98792ee0c78abce0a3c4a0acb.tar.xz
gsoc2013-evolution-fe27ab117972b1d98792ee0c78abce0a3c4a0acb.tar.zst
gsoc2013-evolution-fe27ab117972b1d98792ee0c78abce0a3c4a0acb.zip
Portability fix (use `readdir()', not `readdir_r()'). Also, be safer
about NULL objects when destroying the shell or the shortcuts. svn path=/trunk/; revision=2850
Diffstat (limited to 'shell/e-shortcuts.c')
-rw-r--r--shell/e-shortcuts.c7
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);