tree view: Avoid a crash with rubberbanding
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 Apr 2015 22:54:45 +0000 (18:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 8 Apr 2015 22:54:45 +0000 (18:54 -0400)
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

index 03d2231c67406efc3d3efee6bd76e46a52b30b17..5e1f476cb7018ac59a64b5728891931407bdeba0 100644 (file)
@@ -2124,6 +2124,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)
     {