gtk+ r20285 - in branches/gtk-2-12: . gtk



Author: matthiasc
Date: Mon Jun  2 22:10:51 2008
New Revision: 20285
URL: http://svn.gnome.org/viewvc/gtk+?rev=20285&view=rev

Log:
        Bug 511217 - potential memory corruption after refreshing a tree_view

        * gtk/gtktreeview.c (cancel_arrow_animation): Reset
        expanded_collapsed_node when canceling the animation.
        Patch by Nicholas Setton.



Modified:
   branches/gtk-2-12/ChangeLog
   branches/gtk-2-12/gtk/gtktreeview.c

Modified: branches/gtk-2-12/gtk/gtktreeview.c
==============================================================================
--- branches/gtk-2-12/gtk/gtktreeview.c	(original)
+++ branches/gtk-2-12/gtk/gtktreeview.c	Mon Jun  2 22:10:51 2008
@@ -8538,6 +8538,9 @@
 
       g_source_remove (tree_view->priv->expand_collapse_timeout);
       tree_view->priv->expand_collapse_timeout = 0;
+
+      /* Reset node */
+      tree_view->priv->expanded_collapsed_node = NULL;
     }
 }
 



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