mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 13:14:14 +08:00
tools/mpris-player: Fix leaking memory when unregistering a player
Any memory allocated for user_data passed to dbus_connection_register_object_path should be freed once unregistered.
This commit is contained in:
parent
77f567523b
commit
d76b4b05b1
@ -540,6 +540,7 @@ static void remove_player(DBusConnection *conn, const char *sender)
|
||||
|
||||
dbus_message_unref(msg);
|
||||
g_free(path);
|
||||
g_free(owner);
|
||||
}
|
||||
|
||||
static gboolean properties_changed(DBusConnection *conn,
|
||||
|
Loading…
Reference in New Issue
Block a user