Core dump in testtreeview



When I ran testtreeview, I got it to crash by choosing the options "Empty 
GtkListStore" followed by "Empty GtkTreeStore".
The following change seemed to fix the problem.

diff -u -p -r1.87 gtktreeview.c
--- gtktreeview.c       2001/06/07 00:07:31     1.87
+++ gtktreeview.c       2001/06/07 10:31:03
@@ -5988,7 +5988,8 @@ gtk_tree_view_set_model (GtkTreeView  *t
                                                G_SIGNAL_MATCH_DATA,
                                                0, 0, NULL,
                                                NULL, tree_view);
-         _gtk_rbtree_free (tree_view->priv->tree);
+          if (tree_view->priv->tree != NULL)
+           _gtk_rbtree_free (tree_view->priv->tree);
        }
 
       if (tree_view->priv->drag_dest_row)

Padraig





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