Memory leaks in ASOC? Way to handle?

My new application can share document image via AirDrop, Copy canvas image as background transparent PDF and generate document preview as PNG.

And each of them consume about 50MB. 20 times operation consume 1GB and hold it on.

Is there any way to release them? Is 1GB a peanut or a piece of cake?

None that I’m aware of. This is a weakness of AppleScriptObjC – AppleScript releases the memory only when it does its own garbage collection (which in such cases can cause its own problems).

So 1GB is no peanut, but it’s the price of admission.

Thank you, Shane. I’ll write it to Q&A.