Skip to content

Add a declaration for vips_shutdown() #523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025

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