avoid warnings on shutdown

Occasionally we could get a few warnings during shutdown due
to inconsistent teardown state. This tries to handle those so
we shutdown cleanly.
This commit is contained in:
Christian Hergert
2016-09-30 10:54:53 -07:00
parent fa58f7a941
commit 69d5dd2f5f
2 changed files with 21 additions and 15 deletions

View File

@ -492,6 +492,9 @@ sp_callgraph_view_set_node (SpCallgraphView *self,
g_assert (SP_IS_CALLGRAPH_VIEW (self));
g_assert (node != NULL);
if (priv->profile == NULL)
return;
model = gtk_tree_view_get_model (priv->functions_view);
if (gtk_tree_model_get_iter_first (model, &iter))
@ -586,6 +589,9 @@ sp_callgraph_view_tag_data_func (GtkTreeViewColumn *column,
StackNode *node = NULL;
const gchar *str = NULL;
if (priv->profile == NULL)
return;
gtk_tree_model_get (model, iter, COLUMN_POINTER, &node, -1);
if (node && node->data)