libsysprof-ui: fix unrefing of unused visualizers

This commit is contained in:
Christian Hergert
2021-10-01 13:59:42 -07:00
parent 09dd5c266e
commit eb18defbc5
2 changed files with 4 additions and 4 deletions

View File

@ -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;