Free pixels
This commit is contained in:
@ -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;
|
||||
|
Binary file not shown.
6
codecs/avif/package.json
Normal file
6
codecs/avif/package.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "avif",
|
||||
"scripts": {
|
||||
"build": "../build-cpp.sh"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user