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:
Luiz Augusto von Dentz 2013-07-25 16:05:28 +03:00
parent 77f567523b
commit d76b4b05b1

View File

@ -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,