Open BajanMarian opened 2 months ago
Thank you!! This is a great bug report. I agree that management of the temporary Director should be more explicit. I think the first solution would make more sense.
Would you have interest in developing a PR?
Yes.
Issue Description
When you import govips, a temporary folder is always created, but not always removed.
Replication Steps:
In this scenario, the temporary directory persists on disk, which it should not. The only way to ensure its removal currently is to explicitly call vips.Startup() and then defer vips.Shutdown()
Real-world Scenario:
Proposed Solutions:
After reviewing the code, I suggest two potential solutions to address this issue: