]> git.saurik.com Git - wxWidgets.git/commitdiff
Was missing png_read_end
authorSylvain Bougnoux <bougnoux@imra-europe.com>
Mon, 13 Dec 1999 19:02:50 +0000 (19:02 +0000)
committerSylvain Bougnoux <bougnoux@imra-europe.com>
Mon, 13 Dec 1999 19:02:50 +0000 (19:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/imagpng.cpp

index 898bc0e5222a92b31ab15b6aa683fe85c9ee713b..3673027389e3fa7af114452e39689b19ea2a19f3 100644 (file)
@@ -167,6 +167,7 @@ bool wxPNGHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose
     {
         int transp = 0;
         png_read_image( png_ptr, lines );
     {
         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) ||
         png_destroy_read_struct( &png_ptr, &info_ptr, (png_infopp) NULL );
         unsigned char *ptr = image->GetData();
         if ((color_type == PNG_COLOR_TYPE_GRAY) ||