diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/imagewriter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/imagewriter.cpp b/src/resources/imagewriter.cpp index 93f834f2..f4be3a66 100644 --- a/src/resources/imagewriter.cpp +++ b/src/resources/imagewriter.cpp @@ -55,7 +55,9 @@ bool ImageWriter::writePNG(SDL_Surface *surface, logger->log("Had trouble creating png_structp"); return false; } - + + info_ptr = png_create_info_struct(png_ptr); + if (!info_ptr) { png_destroy_write_struct(&png_ptr, (png_infopp)NULL); logger->log("Could not create png_info"); |