diff options
Diffstat (limited to 'cpp/src/slice2cpp/Main.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp index 5ca04edff48..3d11ddc66a5 100644 --- a/cpp/src/slice2cpp/Main.cpp +++ b/cpp/src/slice2cpp/Main.cpp @@ -187,7 +187,10 @@ main(int argc, char* argv[]) { Gen gen(argv[0], base, include, includePaths, dllExport); if(!gen) - status = EXIT_FAILURE; + { + unit -> destroy(); + return EXIT_FAILURE; + } gen.generate(unit); } |