mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: check for null node before setting toplevel
This commit is contained in:
@ -433,14 +433,17 @@ sysprof_callgraph_add_traceable (SysprofCallgraph *self,
|
|||||||
list_model_index,
|
list_model_index,
|
||||||
!!(self->flags & SYSPROF_CALLGRAPH_FLAGS_HIDE_SYSTEM_LIBRARIES));
|
!!(self->flags & SYSPROF_CALLGRAPH_FLAGS_HIDE_SYSTEM_LIBRARIES));
|
||||||
|
|
||||||
node->is_toplevel = TRUE;
|
if (node != NULL)
|
||||||
|
{
|
||||||
|
node->is_toplevel = TRUE;
|
||||||
|
|
||||||
if (node && self->augment_func)
|
if (self->augment_func)
|
||||||
self->augment_func (self,
|
self->augment_func (self,
|
||||||
node,
|
node,
|
||||||
SYSPROF_DOCUMENT_FRAME (traceable),
|
SYSPROF_DOCUMENT_FRAME (traceable),
|
||||||
TRUE,
|
TRUE,
|
||||||
self->augment_func_data);
|
self->augment_func_data);
|
||||||
|
}
|
||||||
|
|
||||||
if ((self->flags & SYSPROF_CALLGRAPH_FLAGS_CATEGORIZE_FRAMES) != 0)
|
if ((self->flags & SYSPROF_CALLGRAPH_FLAGS_CATEGORIZE_FRAMES) != 0)
|
||||||
_sysprof_callgraph_categorize (self, node);
|
_sysprof_callgraph_categorize (self, node);
|
||||||
|
|||||||
Reference in New Issue
Block a user