[gtk+/gtk-3-14] tree view: Avoid a crash with rubberbanding



commit 1d93df8a5ee00a7754e0cc3efc2e4cf6534a3b34
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 8 18:54:45 2015 -0400

    tree view: Avoid a crash with rubberbanding
    
    When a treeview is destroyed while rubberbanding is going
    on, we crash because the rb tree is nuked before we want
    to access it to stop the rubberbanding. To avoid this crash
    end the rubberbanding early in destroy().
    
    See
    https://bugzilla.redhat.com/show_bug.cgi?id=1173904

 gtk/gtktreeview.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 0f700f8..54b9887 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2120,6 +2120,7 @@ gtk_tree_view_destroy (GtkWidget *widget)
   GList *list;
 
   gtk_tree_view_stop_editing (tree_view, TRUE);
+  gtk_tree_view_stop_rubber_band (tree_view);
 
   if (tree_view->priv->columns != NULL)
     {


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