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:
@@ -493,6 +493,7 @@ bool wxPNGHandler::LoadFile( wxImage *image, wxInputStream& stream )
|
|||||||
// method is to use goto (setjmp is not really C++ dtors friendly...)
|
// method is to use goto (setjmp is not really C++ dtors friendly...)
|
||||||
|
|
||||||
unsigned char **lines = (unsigned char **) NULL;
|
unsigned char **lines = (unsigned char **) NULL;
|
||||||
|
unsigned int i;
|
||||||
png_infop info_ptr = (png_infop) NULL;
|
png_infop info_ptr = (png_infop) NULL;
|
||||||
|
|
||||||
image->Destroy();
|
image->Destroy();
|
||||||
@@ -540,7 +541,7 @@ bool wxPNGHandler::LoadFile( wxImage *image, wxInputStream& stream )
|
|||||||
if (lines == NULL)
|
if (lines == NULL)
|
||||||
goto error;
|
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)
|
if ((lines[i] = (unsigned char *)malloc(width * (sizeof(unsigned char) * 4))) == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user