Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

fix: free memory when done

not-nullptr4273cc249ac8
diff --git a/src/lib/workers/vips.ts b/src/lib/workers/vips.ts
index b8440a5..8b59997 100644
--- a/src/lib/workers/vips.ts
+++ b/src/lib/workers/vips.ts
@@ -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: {