compilation problem fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fd323a5e23
commit
0330f713ee
@ -493,6 +493,7 @@ bool wxPNGHandler::LoadFile( wxImage *image, wxInputStream& stream )
|
||||
// method is to use goto (setjmp is not really C++ dtors friendly...)
|
||||
|
||||
unsigned char **lines = (unsigned char **) NULL;
|
||||
unsigned int i;
|
||||
png_infop info_ptr = (png_infop) NULL;
|
||||
|
||||
image->Destroy();
|
||||
@ -540,7 +541,7 @@ bool wxPNGHandler::LoadFile( wxImage *image, wxInputStream& stream )
|
||||
if (lines == NULL)
|
||||
goto error;
|
||||
|
||||
for (unsigned int i = 0; i < height; i++)
|
||||
for (i = 0; i < height; i++)
|
||||
{
|
||||
if ((lines[i] = (unsigned char *)malloc(width * (sizeof(unsigned char) * 4))) == NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user