libsysprof-ui: fix some floating unrefs

This commit is contained in:
Christian Hergert
2021-10-01 13:47:55 -07:00
parent b0cfa7632e
commit 517c63565c
3 changed files with 3 additions and 3 deletions

View File

@ -218,7 +218,7 @@ sysprof_battery_aid_present_finish (SysprofAid *aid,
if (found > 0)
sysprof_display_add_group (present->display, group);
else
g_object_unref (group);
g_object_unref (g_object_ref_sink (group));
}
return counters != NULL;

View File

@ -245,7 +245,7 @@ sysprof_diskstat_aid_present_finish (SysprofAid *aid,
if (counters->len > 0)
sysprof_display_add_group (present->display, group);
else
g_object_unref (group);
g_object_unref (g_object_ref_sink (group));
}
return counters != NULL;

View File

@ -242,7 +242,7 @@ sysprof_netdev_aid_present_finish (SysprofAid *aid,
if (counters->len > 0)
sysprof_display_add_group (present->display, group);
else
g_object_unref (group);
g_object_unref (g_object_ref_sink (group));
}
return counters != NULL;