break;\r
// TODO: Error handling in case of unsupported color format\r
default:\r
- break;\r
+ os::Printer::log("CImageWriterPNG does not support image format", ColorFormatNames[image->getColorFormat()], ELL_WARNING);\r
+ png_destroy_write_struct(&png_ptr, &info_ptr);\r
+ delete [] tmpImage;\r
+ return false;\r
}\r
\r
// Create array of pointers to rows in image data\r