mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
callgraph-view: compare nodes by using data field
We could have multiple StackNodes that point at the same data. However we might not have pointer equality. This uses the data pointer that nodes point at to determine equality.
This commit is contained in:
@ -526,7 +526,7 @@ sp_callgraph_view_set_node (SpCallgraphView *self,
|
||||
COLUMN_POINTER, &item,
|
||||
-1);
|
||||
|
||||
if (item == node)
|
||||
if (item != NULL && item->data == node->data)
|
||||
{
|
||||
GtkTreeSelection *selection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user