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:
@ -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>
|
2003-05-13 Ettore Perazzoli <ettore@ximian.com>
|
||||||
|
|
||||||
* menus/gal-view-menus.c (gal_view_menus_unmerge): Guard against
|
* menus/gal-view-menus.c (gal_view_menus_unmerge): Guard against
|
||||||
|
@ -148,6 +148,9 @@ gvm_finalize (GObject *object)
|
|||||||
|
|
||||||
gal_view_menus_unmerge (gvm, NULL);
|
gal_view_menus_unmerge (gvm, NULL);
|
||||||
|
|
||||||
|
if (gvm->priv->component)
|
||||||
|
bonobo_object_unref (gvm->priv->component);
|
||||||
|
|
||||||
if (gvm->priv->define_views_dialog)
|
if (gvm->priv->define_views_dialog)
|
||||||
g_object_weak_unref (G_OBJECT (gvm->priv->define_views_dialog), clear_define_views_dialog, gvm);
|
g_object_weak_unref (G_OBJECT (gvm->priv->define_views_dialog), clear_define_views_dialog, gvm);
|
||||||
|
|
||||||
|
@ -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>
|
2003-05-13 Ettore Perazzoli <ettore@ximian.com>
|
||||||
|
|
||||||
[#42628]
|
[#42628]
|
||||||
|
@ -248,18 +248,21 @@ impl_destroy (GtkObject *object)
|
|||||||
combo_button = E_COMBO_BUTTON (object);
|
combo_button = E_COMBO_BUTTON (object);
|
||||||
priv = combo_button->priv;
|
priv = combo_button->priv;
|
||||||
|
|
||||||
if (priv->arrow_pixmap != NULL) {
|
if (priv) {
|
||||||
gtk_widget_destroy (priv->arrow_pixmap);
|
if (priv->arrow_pixmap != NULL) {
|
||||||
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
g_free (priv);
|
||||||
|
combo_button->priv = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->icon != NULL) {
|
|
||||||
g_object_unref (priv->icon);
|
|
||||||
priv->icon = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
g_free (priv);
|
|
||||||
|
|
||||||
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user