Loading system/bta/gatt/bta_gattc_act.c +4 −11 Original line number Diff line number Diff line Loading @@ -1038,12 +1038,8 @@ void bta_gattc_disc_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) if (p_clcb->status != GATT_SUCCESS) { /* clean up cache */ if(p_clcb->p_srcb && p_clcb->p_srcb->p_srvc_cache) { while (! fixed_queue_is_empty(p_clcb->p_srcb->cache_buffer)) { osi_freebuf(fixed_queue_try_dequeue(p_clcb->p_srcb->cache_buffer)); } if(p_clcb->p_srcb && p_clcb->p_srcb->p_srvc_cache) { list_free(p_clcb->p_srcb->p_srvc_cache); p_clcb->p_srcb->p_srvc_cache = NULL; } Loading Loading @@ -1909,11 +1905,8 @@ void bta_gattc_process_api_refresh(tBTA_GATTC_CB *p_cb, tBTA_GATTC_DATA * p_msg) } } /* in all other cases, mark it and delete the cache */ if (p_srvc_cb->p_srvc_cache != NULL) { while (! fixed_queue_is_empty(p_srvc_cb->cache_buffer)) osi_freebuf(fixed_queue_try_dequeue(p_srvc_cb->cache_buffer)); if (p_srvc_cb->p_srvc_cache != NULL) { list_free(p_srvc_cb->p_srvc_cache); p_srvc_cb->p_srvc_cache = NULL; } } Loading Loading
system/bta/gatt/bta_gattc_act.c +4 −11 Original line number Diff line number Diff line Loading @@ -1038,12 +1038,8 @@ void bta_gattc_disc_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) if (p_clcb->status != GATT_SUCCESS) { /* clean up cache */ if(p_clcb->p_srcb && p_clcb->p_srcb->p_srvc_cache) { while (! fixed_queue_is_empty(p_clcb->p_srcb->cache_buffer)) { osi_freebuf(fixed_queue_try_dequeue(p_clcb->p_srcb->cache_buffer)); } if(p_clcb->p_srcb && p_clcb->p_srcb->p_srvc_cache) { list_free(p_clcb->p_srcb->p_srvc_cache); p_clcb->p_srcb->p_srvc_cache = NULL; } Loading Loading @@ -1909,11 +1905,8 @@ void bta_gattc_process_api_refresh(tBTA_GATTC_CB *p_cb, tBTA_GATTC_DATA * p_msg) } } /* in all other cases, mark it and delete the cache */ if (p_srvc_cb->p_srvc_cache != NULL) { while (! fixed_queue_is_empty(p_srvc_cb->cache_buffer)) osi_freebuf(fixed_queue_try_dequeue(p_srvc_cb->cache_buffer)); if (p_srvc_cb->p_srvc_cache != NULL) { list_free(p_srvc_cb->p_srvc_cache); p_srvc_cb->p_srvc_cache = NULL; } } Loading