Also unlink light tmpfile on errors

This commit is contained in:
Matthias Schiffer 2015-02-03 14:19:19 +01:00
parent 05b2cc0e1e
commit 0bd8e211e2

View file

@ -113,6 +113,7 @@ static void doRegion(const std::string &input, const std::string &output, const
catch (const std::exception& ex) { catch (const std::exception& ex) {
std::fprintf(stderr, "Failed to generate %s: %s\n", output.c_str(), ex.what()); std::fprintf(stderr, "Failed to generate %s: %s\n", output.c_str(), ex.what());
unlink(tmpfile.c_str()); unlink(tmpfile.c_str());
unlink(tmpfile_light.c_str());
} }
} }