]> Pileus Git - ~andy/gtk/commitdiff
Fix crash in gtk_fixed_remove()
authorVincent Untz <vuntz@gnome.org>
Tue, 1 Feb 2011 19:01:49 +0000 (20:01 +0100)
committerVincent Untz <vuntz@gnome.org>
Tue, 1 Feb 2011 19:08:52 +0000 (20:08 +0100)
b3f6f67c changed the loop from while() to for(), but the line to move to
the next child was kept, so we could go past the end of the list.

https://bugzilla.gnome.org/show_bug.cgi?id=641176

gtk/gtkfixed.c

index e61f03a625595014624c58b3d2360ce61bc7b720..fd92cd7b2efa6a47c412b4adf33067c2d344707f 100644 (file)
@@ -526,8 +526,6 @@ gtk_fixed_remove (GtkContainer *container,
 
           break;
         }
 
           break;
         }
-
-      children = children->next;
     }
 }
 
     }
 }