Updated deletion in FreeDataProviderReleaseCallback

This commit is contained in:
Prianka Liz Kariat 2023-10-19 20:42:06 +05:30
parent fce7b19ad7
commit 69b7a21368

View File

@ -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