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
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
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
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
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
(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