From 3fa99eb67309d7e9ed628f8b0362dfad6fc07e9a Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Mon, 30 May 2011 16:44:46 -0700 Subject: [PATCH] Fix for plPNG::IRead not reading final end block of image. --- Sources/Plasma/PubUtilLib/plGImage/plPNG.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Plasma/PubUtilLib/plGImage/plPNG.cpp b/Sources/Plasma/PubUtilLib/plGImage/plPNG.cpp index f41e7961..ff7e9026 100644 --- a/Sources/Plasma/PubUtilLib/plGImage/plPNG.cpp +++ b/Sources/Plasma/PubUtilLib/plGImage/plPNG.cpp @@ -143,6 +143,7 @@ plMipmap* plPNG::IRead(hsStream* inStream) } png_read_image(png_ptr, row_ptrs); + png_read_end(png_ptr, end_info); // Clean up allocated structs png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); delete [] row_ptrs;