diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-12 03:02:16 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-12 03:02:16 +0800 |
commit | 0ebdf5ad6377cfcfd9216b19020505c65d891dde (patch) | |
tree | ba5ebee80e37df45b0a6fb29df80497795b86576 | |
parent | ba61233a0c4f67e607c8ca5f545b135bdf57f88e (diff) | |
download | gsoc2013-evolution-0ebdf5ad6377cfcfd9216b19020505c65d891dde.tar.gz gsoc2013-evolution-0ebdf5ad6377cfcfd9216b19020505c65d891dde.tar.zst gsoc2013-evolution-0ebdf5ad6377cfcfd9216b19020505c65d891dde.zip |
(impl_finalize): Protect against
priv->checkboxes being NULL.
svn path=/trunk/; revision=18701
-rw-r--r-- | shell/ChangeLog | 5 | ||||
-rw-r--r-- | shell/e-storage-set-view.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 0641fe6c09..f2b82225fb 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,5 +1,10 @@ 2002-11-11 Ettore Perazzoli <ettore@ximian.com> + * e-storage-set-view.c (impl_finalize): Protect against + priv->checkboxes being NULL. + +2002-11-11 Ettore Perazzoli <ettore@ximian.com> + * e-component-registry.c: Make separate dispose/finalize overrides of just overriding destroy. * e-corba-config-page.c: Likewise. diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 6e910b37ab..374154f01c 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -882,8 +882,10 @@ impl_finalize (GObject *object) g_hash_table_foreach (priv->type_name_to_pixbuf, pixbuf_free_func, NULL); g_hash_table_destroy (priv->type_name_to_pixbuf); - g_hash_table_foreach (priv->checkboxes, (GHFunc) g_free, NULL); - g_hash_table_destroy (priv->checkboxes); + if (priv->checkboxes != NULL) { + g_hash_table_foreach (priv->checkboxes, (GHFunc) g_free, NULL); + g_hash_table_destroy (priv->checkboxes); + } if (priv->drag_corba_source_context != NULL) CORBA_free (priv->drag_corba_source_context); |