mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-02 19:08:09 +02:00
m-mpris: ‘Item’s are allocated with GLib
As are the string copies they point to, don't leak them and free them the right way.
This commit is contained in:
parent
1846d75717
commit
3a6f2c1e90
1 changed files with 4 additions and 2 deletions
|
|
@ -98,8 +98,10 @@ static void item_free (gpointer data)
|
|||
{
|
||||
Item *item = data;
|
||||
|
||||
free(item->desktop_entry);
|
||||
free(item);
|
||||
g_clear_pointer (&item->desktop_entry, g_free);
|
||||
g_clear_pointer (&item->flatpak_app_id, g_free);
|
||||
g_clear_pointer (&item->flatpak_instance_id, g_free);
|
||||
g_free (item);
|
||||
}
|
||||
|
||||
static Players *players_new (GDBusConnection *conn)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue