We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c128ed commit 5c197a1Copy full SHA for 5c197a1
1 file changed
Source/Plugins/PluginHEIF.cpp
@@ -497,6 +497,7 @@ class PluginHeif
497
if (heifError.code != heif_error_Ok) {
498
throw std::runtime_error(std::string("PluginHeif[Save]: Error in heif_context_encode_image(). ") + heifError.message);
499
}
500
+ yato_finally(([&, this]() { libHeif.heif_image_handle_release_f(heifPrimaryImageHandle); }));
501
502
// EXIF
503
if (libHeif.heif_context_add_exif_metadata_f && heifPrimaryImageHandle) {
0 commit comments