Was missing png_read_end

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Sylvain Bougnoux 1999-12-13 19:02:50 +00:00
parent 65e4f9b986
commit 5ef37c79de

View File

@ -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) ||