mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 15:40:53 +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)
|
if (has_usage && !found_combined)
|
||||||
sysprof_visualizer_group_insert (usage, over_row, 0, FALSE);
|
sysprof_visualizer_group_insert (usage, over_row, 0, FALSE);
|
||||||
else
|
else
|
||||||
g_object_unref (GTK_WIDGET (over_row));
|
g_object_unref (g_object_ref_sink (over_row));
|
||||||
|
|
||||||
if (has_usage)
|
if (has_usage)
|
||||||
sysprof_display_add_group (present->display, usage);
|
sysprof_display_add_group (present->display, usage);
|
||||||
else
|
else
|
||||||
g_object_unref (GTK_WIDGET (usage));
|
g_object_unref (g_object_ref_sink (usage));
|
||||||
|
|
||||||
if (has_freq)
|
if (has_freq)
|
||||||
sysprof_display_add_group (present->display, freq);
|
sysprof_display_add_group (present->display, freq);
|
||||||
else
|
else
|
||||||
g_object_unref (GTK_WIDGET (freq));
|
g_object_unref (g_object_ref_sink (freq));
|
||||||
}
|
}
|
||||||
|
|
||||||
return counters != NULL;
|
return counters != NULL;
|
||||||
|
|||||||
@ -227,7 +227,7 @@ sysprof_rapl_aid_present_finish (SysprofAid *aid,
|
|||||||
if (found > 0)
|
if (found > 0)
|
||||||
sysprof_display_add_group (present->display, energy);
|
sysprof_display_add_group (present->display, energy);
|
||||||
else
|
else
|
||||||
g_object_unref (energy);
|
g_object_unref (g_object_ref_sink (energy));
|
||||||
}
|
}
|
||||||
|
|
||||||
return counters != NULL;
|
return counters != NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user