From 2bb717d07048aa5224f5376af2334b33b71ec24d Mon Sep 17 00:00:00 2001 From: Kinar Date: Thu, 11 Jan 2024 01:54:29 -0800 Subject: [PATCH] Readd cleanup code --- .../c/vision/pose_landmarker/pose_landmarker_result_converter.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/mediapipe/tasks/c/vision/pose_landmarker/pose_landmarker_result_converter.cc b/mediapipe/tasks/c/vision/pose_landmarker/pose_landmarker_result_converter.cc index 267efdf358..9383306452 100644 --- a/mediapipe/tasks/c/vision/pose_landmarker/pose_landmarker_result_converter.cc +++ b/mediapipe/tasks/c/vision/pose_landmarker/pose_landmarker_result_converter.cc @@ -87,6 +87,7 @@ void CppClosePoseLandmarkerResult(PoseLandmarkerResult* result) { } delete[] result->segmentation_masks; result->segmentation_masks = nullptr; + result->segmentation_masks_count = 0; } for (uint32_t i = 0; i < result->pose_landmarks_count; ++i) {