From d5a1bc03afa0ab1442552be244a6448120f4f330 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Mon, 23 Oct 2023 20:28:43 +0530 Subject: [PATCH] Fixed deletion of iOS output MPImage buffer in MPImage Utils --- mediapipe/tasks/ios/vision/core/utils/sources/MPPImage+Utils.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/tasks/ios/vision/core/utils/sources/MPPImage+Utils.mm b/mediapipe/tasks/ios/vision/core/utils/sources/MPPImage+Utils.mm index 440b321b9..0569ad783 100644 --- a/mediapipe/tasks/ios/vision/core/utils/sources/MPPImage+Utils.mm +++ b/mediapipe/tasks/ios/vision/core/utils/sources/MPPImage+Utils.mm @@ -37,7 +37,7 @@ vImage_Buffer allocatedVImageBuffer(vImagePixelCount width, vImagePixelCount hei } static void FreeDataProviderReleaseCallback(void *buffer, const void *data, size_t size) { - delete (vImage_Buffer *)buffer; + delete[] buffer; } } // namespace