-
-
Notifications
You must be signed in to change notification settings - Fork 733
Emit warning on metadata changes for shared images #4783
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
Conversation
|
Nice!
|
|
I'll remove the ref count test from that PR I made, this one is better. |
|
printf("vips_image_set: set \"%s\" on shared image\n", name); |
|
This PR identifies three code paths that may remove or set a metadata item on a shared image: libvips/libvips/foreign/dzsave.c Line 1638 in 2e49443
libvips/libvips/foreign/heifsave.c Line 318 in 2e49443
libvips/libvips/foreign/vips2tiff.c Line 1986 in 2e49443
|
Reintroduce the code removed in commit e4db747. The warning is now only emitted in debug builds and when the `VIPS_LEAK` mechanism is enabled.
69b1496 to
07bbbd8
Compare
|
Ah what a pain. Let's merge and fix those in a follow-up. |
Very like the dzsave change -- we need to make a private image to signal the minimise behaviour we want to the thraedpool. See #4783
Very like the dzsave change -- we need to make a private image to signal the minimise behaviour we want to the thraedpool. See #4783
Reintroduce the code removed in commit e4db747. The warning is now only emitted in debug builds and when the
VIPS_LEAKmechanism is enabled.