Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38de5d5c authored by Zhihai Xu's avatar Zhihai Xu Committed by Android Git Automerger
Browse files

am c91a085f: native crash while skipping songs with A2DP connected

* commit 'c91a085f':
  native crash while skipping songs with A2DP connected
parents c24677b6 c91a085f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -664,11 +664,14 @@ void bta_av_rc_meta_rsp(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data)
            (!p_data->api_meta_rsp.is_rsp && (p_cb->features & BTA_AV_FEAT_RCCT)) )
        {
            p_rcb = &p_cb->rcb[p_data->hdr.layer_specific];
            AVRC_MsgReq(p_rcb->handle, p_data->api_meta_rsp.label, p_data->api_meta_rsp.rsp_code,
            if (p_rcb->handle != BTA_AV_RC_HANDLE_NONE) {
                AVRC_MsgReq(p_rcb->handle, p_data->api_meta_rsp.label,
                            p_data->api_meta_rsp.rsp_code,
                            p_data->api_meta_rsp.p_pkt);
                free = FALSE;
            }
        }
    }

    if (free)
        GKI_freebuf (p_data->api_meta_rsp.p_pkt);