diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index c84bbe2..2677225 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
{
struct media_adapter *adapter = data;
+ queue_destroy(adapter->apps, app_free);
+
while (adapter->endpoints)
release_endpoint(adapter->endpoints->data);
adapter = g_new0(struct media_adapter, 1);
adapter->btd_adapter = btd_adapter_ref(btd_adapter);
+ adapter->apps = queue_new();
if (!g_dbus_register_interface(btd_get_dbus_connection(),
adapter_get_path(btd_adapter),