fix: free memory when done

This commit is contained in:
not-nullptr 2024-11-12 12:26:03 +00:00
parent 1deeb1560d
commit 4273cc249a
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ const handleMessage = async (
if (!message.to.startsWith(".")) message.to = `.${message.to}`;
const image = vips.Image.newFromBuffer(message.input.buffer);
const output = image.writeToBuffer(message.to);
image.delete();
return {
type: "finished",
output: {