mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-08 14:10:55 +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)
|
if (found > 0)
|
||||||
sysprof_display_add_group (present->display, group);
|
sysprof_display_add_group (present->display, group);
|
||||||
else
|
else
|
||||||
g_object_unref (group);
|
g_object_unref (g_object_ref_sink (group));
|
||||||
}
|
}
|
||||||
|
|
||||||
return counters != NULL;
|
return counters != NULL;
|
||||||
|
|||||||
@ -245,7 +245,7 @@ sysprof_diskstat_aid_present_finish (SysprofAid *aid,
|
|||||||
if (counters->len > 0)
|
if (counters->len > 0)
|
||||||
sysprof_display_add_group (present->display, group);
|
sysprof_display_add_group (present->display, group);
|
||||||
else
|
else
|
||||||
g_object_unref (group);
|
g_object_unref (g_object_ref_sink (group));
|
||||||
}
|
}
|
||||||
|
|
||||||
return counters != NULL;
|
return counters != NULL;
|
||||||
|
|||||||
@ -242,7 +242,7 @@ sysprof_netdev_aid_present_finish (SysprofAid *aid,
|
|||||||
if (counters->len > 0)
|
if (counters->len > 0)
|
||||||
sysprof_display_add_group (present->display, group);
|
sysprof_display_add_group (present->display, group);
|
||||||
else
|
else
|
||||||
g_object_unref (group);
|
g_object_unref (g_object_ref_sink (group));
|
||||||
}
|
}
|
||||||
|
|
||||||
return counters != NULL;
|
return counters != NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user