diff options
author | bobo1on1 <bob-nospam-@xbmc.org> | 2012-03-17 17:02:18 +0100 |
---|---|---|
committer | bobo1on1 <bob-nospam-@xbmc.org> | 2012-03-17 17:02:18 +0100 |
commit | fa91ae6c4f9acdc76fe9447bb9763666ea3b99a5 (patch) | |
tree | 1d5847c40cb6424f650440a82a1f5d9c56f287ea /lib/cximage-6.0 | |
parent | 10ecf8d6020e44321fb96cd0f9ca0c6f1651b5c4 (diff) |
removed: unneeded check
Diffstat (limited to 'lib/cximage-6.0')
-rw-r--r-- | lib/cximage-6.0/CxImage/ximapng.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cximage-6.0/CxImage/ximapng.cpp b/lib/cximage-6.0/CxImage/ximapng.cpp index 89d2c88078..8ff9904a9f 100644 --- a/lib/cximage-6.0/CxImage/ximapng.cpp +++ b/lib/cximage-6.0/CxImage/ximapng.cpp @@ -728,14 +728,14 @@ bool CxImagePNG::Encode(CxFile *hFile) /* if you malloced the palette, free it here */ #ifdef USE_NEW_LIBPNG_API - if (_palette){ - delete [] (_palette); + delete [] (_palette); #else - if (info_ptr->palette){ + if (info_ptr->palette) + { delete [] (info_ptr->palette); info_ptr->palette = NULL; + } #endif - } /* clean up after the write, and free any memory allocated */ png_destroy_write_struct(&png_ptr, (png_infopp)&info_ptr); |