#endif
/* Free all of the memory associated with the png_ptr and info_ptr */
delete [] row_pointers;
+ row_pointers = nullptr;
png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
cx_throw("");
}
}
delete [] row_pointers;
+ row_pointers = nullptr;
/* read the rest of the file, getting any additional chunks in info_ptr */
png_read_end(png_ptr, info_ptr);
}
delete [] row_pointers;
+ row_pointers = nullptr;
//if necessary, restore the original palette
if (!bGrayScale && head.biClrUsed && info.nBkgndIndex>0)