Fixed AVRCP controller reply pending request 08/202608/1
authorAmit Purwar <amit.purwar@samsung.com>
Mon, 1 Apr 2019 11:38:36 +0000 (17:08 +0530)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 1 Apr 2019 11:38:36 +0000 (17:08 +0530)
Change-Id: I0d086f52f974ea40bb40a104bfa3e6c2e3dcccf5
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
bt-service-adaptation/services/audio/avrcp/bt-service-avrcp-ctrl.c

index 30c9b463e3877ab01916e1d51c1d6bf6ac952d72..7a43fadcb051ca65216c9984bc383a203c365b2d 100644 (file)
@@ -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("-");
 }