diff --git a/CLTool/src/clunix.cpp b/CLTool/src/clunix.cpp index b4b770f..b6b5675 100644 --- a/CLTool/src/clunix.cpp +++ b/CLTool/src/clunix.cpp @@ -71,6 +71,7 @@ int main(int argc, char **argv) { CompressedImage *ci = CompressImage(file, settings); // Cleanup - delete ci; + if(NULL != ci) + delete ci; return 0; }