From 0bd8e211e2c3eb0790503fc357d579acb7975d22 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 3 Feb 2015 14:19:19 +0100 Subject: Also unlink light tmpfile on errors --- src/MinedMap.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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()); } } -- cgit v1.2.3