From 760ef25e412a0a86254eab0ccaa05dade2bcf512 Mon Sep 17 00:00:00 2001 From: Amit Purwar Date: Mon, 1 Apr 2019 17:08:36 +0530 Subject: [PATCH] Fixed AVRCP controller reply pending request Change-Id: I0d086f52f974ea40bb40a104bfa3e6c2e3dcccf5 Signed-off-by: Amit Purwar --- bt-service-adaptation/services/audio/avrcp/bt-service-avrcp-ctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bt-service-adaptation/services/audio/avrcp/bt-service-avrcp-ctrl.c b/bt-service-adaptation/services/audio/avrcp/bt-service-avrcp-ctrl.c index 30c9b46..7a43fad 100644 --- a/bt-service-adaptation/services/audio/avrcp/bt-service-avrcp-ctrl.c +++ b/bt-service-adaptation/services/audio/avrcp/bt-service-avrcp-ctrl.c @@ -477,13 +477,13 @@ static void __bt_avrcp_ct_reply_pending_requests(void) case BT_AVRCP_GET_TRACK_INFO: case BT_AVRCP_CONTROL_GET_PROPERTY: { _bt_service_method_return(req_info->context, out_param, result); + _bt_free_info_from_invocation_list(req_info); + g_array_free(out_param, TRUE); break; } default: break; } - _bt_free_info_from_invocation_list(req_info); - g_array_free(out_param, TRUE); } BT_INFO("-"); } -- 2.7.4