forked from AuroraMiddleware/gtk
Don't crash on duplicate destroy. (#318953, Gustavo Carneiro)
2005-10-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't crash on duplicate destroy. (#318953, Gustavo Carneiro)
This commit is contained in:
parent
60ec536ce3
commit
ec76057b9b
@ -1,5 +1,8 @@
|
||||
2005-10-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't crash
|
||||
on duplicate destroy. (#318953, Gustavo Carneiro)
|
||||
|
||||
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog):
|
||||
Point out that destroy-with-parent is a bad idea for the dialog
|
||||
passed to this function. (#318943, Christian Persch)
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-10-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't crash
|
||||
on duplicate destroy. (#318953, Gustavo Carneiro)
|
||||
|
||||
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new_with_dialog):
|
||||
Point out that destroy-with-parent is a bad idea for the dialog
|
||||
passed to this function. (#318943, Christian Persch)
|
||||
|
@ -1408,13 +1408,13 @@ gtk_tree_view_destroy (GtkObject *object)
|
||||
}
|
||||
}
|
||||
|
||||
if (tree_view->priv->search_destroy)
|
||||
if (tree_view->priv->search_destroy && tree_view->priv->search_user_data)
|
||||
{
|
||||
(* tree_view->priv->search_destroy) (tree_view->priv->search_user_data);
|
||||
tree_view->priv->search_user_data = NULL;
|
||||
}
|
||||
|
||||
if (tree_view->priv->row_separator_destroy)
|
||||
if (tree_view->priv->row_separator_destroy && tree_view->priv->row_separator_data)
|
||||
{
|
||||
(* tree_view->priv->row_separator_destroy) (tree_view->priv->row_separator_data);
|
||||
tree_view->priv->row_separator_data = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user