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) {