[sysprof/wip/visualizers] callgraph-view: clear models when unloading
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/visualizers] callgraph-view: clear models when unloading
- Date: Sun, 9 Oct 2016 02:21:40 +0000 (UTC)
commit 37edc29cbbeec75ea001d87f427283ec406a1c10
Author: Christian Hergert <chergert redhat com>
Date: Sat Oct 8 19:20:30 2016 -0700
callgraph-view: clear models when unloading
lib/sp-callgraph-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/sp-callgraph-view.c b/lib/sp-callgraph-view.c
index 3379136..d049e4c 100644
--- a/lib/sp-callgraph-view.c
+++ b/lib/sp-callgraph-view.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]