Skip to content

Commit

Permalink
update FD_C_DestroyOCRResult
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoII committed Apr 18, 2024
1 parent 01f398e commit 77dde5b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions c_api/fastdeploy_capi/vision/result.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,18 @@ void FD_C_DestroyOCRResult(__fd_take FD_C_OCRResult* fd_c_ocr_result) {
delete[] fd_c_ocr_result->cls_scores.data;
// delete cls_labels
delete[] fd_c_ocr_result->cls_labels.data;
// delete table_boxes
for (size_t i = 0; i < fd_c_ocr_result->table_boxes.size; i++) {
delete[] fd_c_ocr_result->table_boxes.data[i].data;
}
delete[] fd_c_ocr_result->table_boxes.data;
// delete table_structure
for (size_t i = 0; i < fd_c_ocr_result->table_structure.size; i++) {
delete[] fd_c_ocr_result->table_structure.data[i].data;
}
delete[] fd_c_ocr_result->table_structure.data;
// delete table_html
delete[] fd_c_ocr_result->table_html.data;
delete fd_c_ocr_result;
}

Expand Down

0 comments on commit 77dde5b

Please sign in to comment.