Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kleisauke
Copy link
Member

Handy for the leak checker - simply set VIPS_LEAK=1, run your program, and call:

pyvips.vips_lib.vips_shutdown()

at the end.

An alternative might be to mark vips_shutdown() as destructor, see e.g. commit kleisauke/libvips@f75675f. However, I'm not sure if that would cause any side effects (just like with atexit() in the past).

Handy for the leak checker.
@jcupitt
Copy link
Member

jcupitt commented Mar 12, 2025

Sure, why not!

@jcupitt jcupitt merged commit 3a12adb into libvips:master Mar 12, 2025
6 checks passed
@kleisauke kleisauke deleted the add-vips-shutdown-decl branch March 12, 2025 20:51
@jcupitt
Copy link
Member

jcupitt commented Mar 13, 2025

I added pyvips.shutdown() for consistency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants