forked from AuroraMiddleware/gtk
Don't unref model if it is NULL. (#139770)
2004-04-12 Matthias Clasen <mclasen@dhcp64-228.boston.redhat.com> * gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref model if it is NULL. (#139770)
This commit is contained in:
parent
d7cb94614d
commit
db6f9f3e56
@ -1,5 +1,8 @@
|
||||
2004-04-12 Matthias Clasen <mclasen@dhcp64-228.boston.redhat.com>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
|
||||
model if it is NULL. (#139770)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
|
||||
|
||||
* gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-04-12 Matthias Clasen <mclasen@dhcp64-228.boston.redhat.com>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
|
||||
model if it is NULL. (#139770)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
|
||||
|
||||
* gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-04-12 Matthias Clasen <mclasen@dhcp64-228.boston.redhat.com>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
|
||||
model if it is NULL. (#139770)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
|
||||
|
||||
* gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-04-12 Matthias Clasen <mclasen@dhcp64-228.boston.redhat.com>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
|
||||
model if it is NULL. (#139770)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
|
||||
|
||||
* gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-04-12 Matthias Clasen <mclasen@dhcp64-228.boston.redhat.com>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_unset_model): Don't unref
|
||||
model if it is NULL. (#139770)
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
|
||||
|
||||
* gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
|
||||
|
@ -1483,8 +1483,11 @@ gtk_combo_box_unset_model (GtkComboBox *combo_box)
|
||||
(GtkCallback)gtk_widget_destroy, NULL);
|
||||
}
|
||||
|
||||
g_object_unref (G_OBJECT (combo_box->priv->model));
|
||||
combo_box->priv->model = NULL;
|
||||
if (combo_box->priv->model)
|
||||
{
|
||||
g_object_unref (G_OBJECT (combo_box->priv->model));
|
||||
combo_box->priv->model = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user