mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 14:40:54 +00:00
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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user