diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-03 14:19:19 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-03 14:19:19 +0100 |
commit | 0bd8e211e2c3eb0790503fc357d579acb7975d22 (patch) | |
tree | 3959fbec685a814d76563a058ef49174acb863f2 /src | |
parent | 05b2cc0e1e9b4ffb160f0edee947d793213bedc5 (diff) | |
download | MinedMap-0bd8e211e2c3eb0790503fc357d579acb7975d22.tar MinedMap-0bd8e211e2c3eb0790503fc357d579acb7975d22.zip |
Also unlink light tmpfile on errors
Diffstat (limited to 'src')
-rw-r--r-- | src/MinedMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/MinedMap.cpp b/src/MinedMap.cpp index 5092ceb..7207dff 100644 --- a/src/MinedMap.cpp +++ b/src/MinedMap.cpp @@ -113,6 +113,7 @@ static void doRegion(const std::string &input, const std::string &output, const catch (const std::exception& ex) { std::fprintf(stderr, "Failed to generate %s: %s\n", output.c_str(), ex.what()); unlink(tmpfile.c_str()); + unlink(tmpfile_light.c_str()); } } |