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
This commit is contained in:
JP Rosevear
2003-05-14 18:42:38 +00:00
committed by JP Rosevear
parent bd1f703edb
commit d49d8a2f15
4 changed files with 25 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2003-05-14 JP Rosevear <jpr@ximian.com>
* menus/gal-view-menus.c (gvm_finalize): unref the component
2003-05-13 Ettore Perazzoli <ettore@ximian.com>
* menus/gal-view-menus.c (gal_view_menus_unmerge): Guard against

View File

@ -148,6 +148,9 @@ gvm_finalize (GObject *object)
gal_view_menus_unmerge (gvm, NULL);
if (gvm->priv->component)
bonobo_object_unref (gvm->priv->component);
if (gvm->priv->define_views_dialog)
g_object_weak_unref (G_OBJECT (gvm->priv->define_views_dialog), clear_define_views_dialog, gvm);

View File

@ -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]

View File

@ -248,6 +248,7 @@ impl_destroy (GtkObject *object)
combo_button = E_COMBO_BUTTON (object);
priv = combo_button->priv;
if (priv) {
if (priv->arrow_pixmap != NULL) {
gtk_widget_destroy (priv->arrow_pixmap);
priv->arrow_pixmap = NULL;
@ -259,6 +260,8 @@ impl_destroy (GtkObject *object)
}
g_free (priv);
combo_button->priv = NULL;
}
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}