callgraph-view: clear models when unloading

This commit is contained in:
Christian Hergert
2016-10-08 19:20:30 -07:00
parent 42b82f69c9
commit 37edc29cbb

View File

@ -211,6 +211,10 @@ sp_callgraph_view_unload (SpCallgraphView *self)
g_queue_clear (priv->history);
g_clear_object (&priv->profile);
priv->profile_size = 0;
gtk_tree_view_set_model (priv->callers_view, NULL);
gtk_tree_view_set_model (priv->functions_view, NULL);
gtk_tree_view_set_model (priv->descendants_view, NULL);
}
void