mirror of https://github.com/VERT-sh/VERT.git
fix: free memory when done
This commit is contained in:
parent
1deeb1560d
commit
4273cc249a
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue