mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-ui: fix unrefing of unused visualizers
This commit is contained in:
@ -323,17 +323,17 @@ sysprof_cpu_aid_present_finish (SysprofAid *aid,
|
||||
if (has_usage && !found_combined)
|
||||
sysprof_visualizer_group_insert (usage, over_row, 0, FALSE);
|
||||
else
|
||||
g_object_unref (GTK_WIDGET (over_row));
|
||||
g_object_unref (g_object_ref_sink (over_row));
|
||||
|
||||
if (has_usage)
|
||||
sysprof_display_add_group (present->display, usage);
|
||||
else
|
||||
g_object_unref (GTK_WIDGET (usage));
|
||||
g_object_unref (g_object_ref_sink (usage));
|
||||
|
||||
if (has_freq)
|
||||
sysprof_display_add_group (present->display, freq);
|
||||
else
|
||||
g_object_unref (GTK_WIDGET (freq));
|
||||
g_object_unref (g_object_ref_sink (freq));
|
||||
}
|
||||
|
||||
return counters != NULL;
|
||||
|
||||
@ -227,7 +227,7 @@ sysprof_rapl_aid_present_finish (SysprofAid *aid,
|
||||
if (found > 0)
|
||||
sysprof_display_add_group (present->display, energy);
|
||||
else
|
||||
g_object_unref (energy);
|
||||
g_object_unref (g_object_ref_sink (energy));
|
||||
}
|
||||
|
||||
return counters != NULL;
|
||||
|
||||
Reference in New Issue
Block a user