diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2004-08-09 02:46:46 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-08-09 02:46:46 +0000 |
commit | 0528aeae3ad33420cc69216c9594a79f3bf89697 (patch) | |
tree | 380e8cb1aee1c3c2f534889d26d160dc498a308b /gtk/gtkcombobox.c | |
parent | c1af2aa6b21c0218dd73c1600921966a08f4e7da (diff) | |
download | gtk+-0528aeae3ad33420cc69216c9594a79f3bf89697.tar.gz |
Oops.
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r-- | gtk/gtkcombobox.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index fc56b6d6e2..1a58008ee6 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -4166,18 +4166,17 @@ void gtk_combo_box_set_active (GtkComboBox *combo_box, gint index_) { - GtkTreePath *path; + GtkTreePath *path = NULL; g_return_if_fail (GTK_IS_COMBO_BOX (combo_box)); g_return_if_fail (index_ >= -1); if (index_ != -1) path = gtk_tree_path_new_from_indices (index_, -1); - else - path = NULL; gtk_combo_box_set_active_internal (combo_box, path); - gtk_tree_path_free (path); + if (path) + gtk_tree_path_free (path); } static void |