Commit fbd96f31 authored by jacob berkman's avatar jacob berkman Committed by Jacob Berkman
Browse files

fix infinite loop when gtk_combo_func() returns NULL (bug #75464)

2002-03-19  jacob berkman  <jacob@ximian.com>

	* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
	gtk_combo_func() returns NULL (bug #75464)
parent 226b6a3e
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com> 2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
......
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com> 2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
......
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com> 2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
......
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com> 2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
......
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com> 2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
......
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com> 2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
......
...@@ -319,9 +319,9 @@ gtk_combo_find (GtkCombo * combo) ...@@ -319,9 +319,9 @@ gtk_combo_find (GtkCombo * combo)
else else
compare_text = g_utf8_casefold (text, -1); compare_text = g_utf8_casefold (text, -1);
clist = GTK_LIST (combo->list)->children; for (clist = GTK_LIST (combo->list)->children;
!found && clist;
while (!found && clist && clist->data) clist = clist->next)
{ {
ltext = gtk_combo_func (GTK_LIST_ITEM (clist->data)); ltext = gtk_combo_func (GTK_LIST_ITEM (clist->data));
if (!ltext) if (!ltext)
...@@ -335,8 +335,6 @@ gtk_combo_find (GtkCombo * combo) ...@@ -335,8 +335,6 @@ gtk_combo_find (GtkCombo * combo)
if (!combo->case_sensitive) if (!combo->case_sensitive)
g_free (ltext); g_free (ltext);
clist = clist->next;
} }
if (!combo->case_sensitive) if (!combo->case_sensitive)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment