From: Amit Purwar Date: Mon, 1 Apr 2019 11:38:36 +0000 (+0530) Subject: Fixed AVRCP controller reply pending request X-Git-Tag: accepted/tizen/unified/20190404.021950~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git;a=commitdiff_plain;h=760ef25e412a0a86254eab0ccaa05dade2bcf512 Fixed AVRCP controller reply pending request Change-Id: I0d086f52f974ea40bb40a104bfa3e6c2e3dcccf5 Signed-off-by: Amit Purwar --- 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("-"); }