From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> When player is unregistered/destroyed its pdu handler should also be removed. --- audio/avrcp.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/audio/avrcp.c b/audio/avrcp.c index 5aa8dc5..9a73ff4 100644 --- a/audio/avrcp.c +++ b/audio/avrcp.c @@ -1101,6 +1101,9 @@ static void player_destroy(gpointer data) if (player->destroy) player->destroy(player->user_data); + if (player->handler) + avctp_unregister_pdu_handler(player->handler); + g_free(player); } -- 1.7.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html