diff options
author | JP Rosevear <jpr@ximian.com> | 2003-05-15 02:42:38 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-05-15 02:42:38 +0800 |
commit | d49d8a2f15034c24cc67ac3922570d95643c39a5 (patch) | |
tree | ea378a046a9f06a318300559ac57d2b7d22a9006 /widgets/misc | |
parent | bd1f703edbe882894fb5901d5f8d206dec5e3079 (diff) | |
download | gsoc2013-evolution-d49d8a2f15034c24cc67ac3922570d95643c39a5.tar.gz gsoc2013-evolution-d49d8a2f15034c24cc67ac3922570d95643c39a5.tar.zst gsoc2013-evolution-d49d8a2f15034c24cc67ac3922570d95643c39a5.zip |
guard against multiple destroys
2003-05-14 JP Rosevear <jpr@ximian.com>
* e-combo-button.c (impl_destroy): guard against multiple destroys
2003-05-14 JP Rosevear <jpr@ximian.com>
* menus/gal-view-menus.c (gvm_finalize): unref the component
svn path=/trunk/; revision=21178
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 4 | ||||
-rw-r--r-- | widgets/misc/e-combo-button.c | 23 |
2 files changed, 17 insertions, 10 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index ee2158b531..f805cb4660 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,7 @@ +2003-05-14 JP Rosevear <jpr@ximian.com> + + * e-combo-button.c (impl_destroy): guard against multiple destroys + 2003-05-13 Ettore Perazzoli <ettore@ximian.com> [#42628] diff --git a/widgets/misc/e-combo-button.c b/widgets/misc/e-combo-button.c index 933c4e8ae4..b4c75073fe 100644 --- a/widgets/misc/e-combo-button.c +++ b/widgets/misc/e-combo-button.c @@ -248,18 +248,21 @@ impl_destroy (GtkObject *object) combo_button = E_COMBO_BUTTON (object); priv = combo_button->priv; - if (priv->arrow_pixmap != NULL) { - gtk_widget_destroy (priv->arrow_pixmap); - priv->arrow_pixmap = NULL; - } + if (priv) { + if (priv->arrow_pixmap != NULL) { + gtk_widget_destroy (priv->arrow_pixmap); + priv->arrow_pixmap = NULL; + } + + if (priv->icon != NULL) { + g_object_unref (priv->icon); + priv->icon = NULL; + } - if (priv->icon != NULL) { - g_object_unref (priv->icon); - priv->icon = NULL; + g_free (priv); + combo_button->priv = NULL; } - - g_free (priv); - + (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } |