mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-ui: fix some floating unrefs
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user