git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1400
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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();
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)
{