From 5ef37c79de6da80b8a91186312ce976a789f1a9e Mon Sep 17 00:00:00 2001 From: Sylvain Bougnoux Date: Mon, 13 Dec 1999 19:02:50 +0000 Subject: [PATCH] Was missing png_read_end git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/imagpng.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/imagpng.cpp b/src/common/imagpng.cpp index 898bc0e522..3673027389 100644 --- a/src/common/imagpng.cpp +++ b/src/common/imagpng.cpp @@ -167,6 +167,7 @@ bool wxPNGHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose { int transp = 0; png_read_image( png_ptr, lines ); + png_read_end( png_ptr, info_ptr ); png_destroy_read_struct( &png_ptr, &info_ptr, (png_infopp) NULL ); unsigned char *ptr = image->GetData(); if ((color_type == PNG_COLOR_TYPE_GRAY) || -- 2.45.2