plug-ins: fix memory leak in HEIF, AVIF export

This commit is contained in:
Daniel Novomeský
2022-11-09 13:07:11 +01:00
parent b7219d51b1
commit 0c53ee8c93

View File

@ -362,6 +362,9 @@ run (const gchar *name,
g_object_unref (file);
}
if (export == GIMP_EXPORT_EXPORT)
gimp_image_delete (image_ID);
g_clear_object (&metadata);
}
#if LIBHEIF_HAVE_VERSION(1,8,0)
@ -448,6 +451,9 @@ run (const gchar *name,
g_object_unref (file);
}
if (export == GIMP_EXPORT_EXPORT)
gimp_image_delete (image_ID);
g_clear_object (&metadata);
}
#endif