From: Matthias Clasen Date: Wed, 8 Apr 2015 22:54:45 +0000 (-0400) Subject: tree view: Avoid a crash with rubberbanding X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~24^2~9923 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a89e99b0be15a1bfb401810a74d508b008459332;p=gtk4.git 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 --- diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 03d2231c67..5e1f476cb7 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -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) {