From 03d13c6fa74316ac131b81df506695e293527e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Sat, 25 Apr 2015 21:32:42 -0300 Subject: [PATCH] (RPNG) Always free the temp chunk on PNG_CHUNK_IHDR --- libretro-common/formats/png/rpng_fbio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libretro-common/formats/png/rpng_fbio.c b/libretro-common/formats/png/rpng_fbio.c index 0ee7e69637..6433a00045 100644 --- a/libretro-common/formats/png/rpng_fbio.c +++ b/libretro-common/formats/png/rpng_fbio.c @@ -175,6 +175,7 @@ bool rpng_load_image_argb_iterate(FILE **fd, struct rpng_t *rpng) return false; } + png_free_chunk(&chunk); rpng->has_ihdr = true; break;