Make sure to not delete potentially empty pointers.

This commit is contained in:
Pavel Krajcevski 2012-09-13 16:56:44 -04:00
parent acd20ea8ac
commit a850cf0103

View File

@ -71,6 +71,7 @@ int main(int argc, char **argv) {
CompressedImage *ci = CompressImage(file, settings);
// Cleanup
if(NULL != ci)
delete ci;
return 0;
}