plug-ins: fix memory leak in HEIF, AVIF export
This commit is contained in:
@ -362,6 +362,9 @@ run (const gchar *name,
|
|||||||
g_object_unref (file);
|
g_object_unref (file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (export == GIMP_EXPORT_EXPORT)
|
||||||
|
gimp_image_delete (image_ID);
|
||||||
|
|
||||||
g_clear_object (&metadata);
|
g_clear_object (&metadata);
|
||||||
}
|
}
|
||||||
#if LIBHEIF_HAVE_VERSION(1,8,0)
|
#if LIBHEIF_HAVE_VERSION(1,8,0)
|
||||||
@ -448,6 +451,9 @@ run (const gchar *name,
|
|||||||
g_object_unref (file);
|
g_object_unref (file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (export == GIMP_EXPORT_EXPORT)
|
||||||
|
gimp_image_delete (image_ID);
|
||||||
|
|
||||||
g_clear_object (&metadata);
|
g_clear_object (&metadata);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user