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}`;
|
if (!message.to.startsWith(".")) message.to = `.${message.to}`;
|
||||||
const image = vips.Image.newFromBuffer(message.input.buffer);
|
const image = vips.Image.newFromBuffer(message.input.buffer);
|
||||||
const output = image.writeToBuffer(message.to);
|
const output = image.writeToBuffer(message.to);
|
||||||
|
image.delete();
|
||||||
return {
|
return {
|
||||||
type: "finished",
|
type: "finished",
|
||||||
output: {
|
output: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue