[gtk+] Fix crash in gtk_fixed_remove()



commit 62d7593fc2961966c93912cacc8059158194949c
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Feb 1 20:01:49 2011 +0100

    Fix crash in gtk_fixed_remove()
    
    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 |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfixed.c b/gtk/gtkfixed.c
index e61f03a..fd92cd7 100644
--- a/gtk/gtkfixed.c
+++ b/gtk/gtkfixed.c
@@ -526,8 +526,6 @@ gtk_fixed_remove (GtkContainer *container,
 
           break;
         }
-
-      children = children->next;
     }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]