Free pixels

This commit is contained in:
Surma
2020-08-03 19:09:35 +01:00
committed by Ingvar Stepanyan
parent 03f33847a3
commit 94a2a7b32f
3 changed files with 7 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ val encode(std::string buffer, int width, int height, AvifOptions options) {
}
auto js_result = Uint8Array.new_(typed_memory_view(output.size, output.data));
avifRGBImageFreePixels(&srcRGB);
avifImageDestroy(image);
avifEncoderDestroy(encoder);
return js_result;