summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-03 14:19:19 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-03 14:19:19 +0100
commit0bd8e211e2c3eb0790503fc357d579acb7975d22 (patch)
tree3959fbec685a814d76563a058ef49174acb863f2 /src
parent05b2cc0e1e9b4ffb160f0edee947d793213bedc5 (diff)
downloadMinedMap-0bd8e211e2c3eb0790503fc357d579acb7975d22.tar
MinedMap-0bd8e211e2c3eb0790503fc357d579acb7975d22.zip
Also unlink light tmpfile on errors
Diffstat (limited to 'src')
-rw-r--r--src/MinedMap.cpp1
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());
}
}