From 1d93df8a5ee00a7754e0cc3efc2e4cf6534a3b34 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 8 Apr 2015 18:54:45 -0400 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 0f700f8cd0..54b9887ee9 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) {