Bug 1542829 - Backport an upstream libpng patch. r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D26575

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ryan VanderMeulen 2019-04-08 19:00:31 +00:00
parent f19457b73f
commit 0ae7b79a49

View File

@ -4598,8 +4598,7 @@ png_image_free(png_imagep image)
if (image != NULL && image->opaque != NULL &&
image->opaque->error_buf == NULL)
{
/* Ignore errors here: */
(void)png_safe_execute(image, png_image_free_function, image);
png_image_free_function(image);
image->opaque = NULL;
}
}