mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-02-06 00:00:30 +01:00
Free the obtained device list array after use
Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
parent
e4ad754351
commit
47c6974fc0
1 changed files with 2 additions and 0 deletions
|
|
@ -283,6 +283,8 @@ up_daemon_update_display_battery (UpDaemon *daemon)
|
|||
}
|
||||
|
||||
out:
|
||||
g_ptr_array_unref (array);
|
||||
|
||||
/* Did anything change? */
|
||||
if (daemon->priv->kind == kind_total &&
|
||||
daemon->priv->state == state_total &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue