aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-02-06 19:24:45 +0100
committerjaseg <git@jaseg.de>2021-02-06 19:24:45 +0100
commit79db2628583f7423d89a9e1892867106c8bf7a9a (patch)
tree4f3b9a53842b638c43fcfb595cea9a83814c377a
parent88faecbdc2d7604553accade6d89929cac4cb08e (diff)
downloadgerbolyze-79db2628583f7423d89a9e1892867106c8bf7a9a.tar.gz
gerbolyze-79db2628583f7423d89a9e1892867106c8bf7a9a.tar.bz2
gerbolyze-79db2628583f7423d89a9e1892867106c8bf7a9a.zip
Make svg-flatten always clean up its temporary files
-rw-r--r--svg-flatten/src/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/svg-flatten/src/main.cpp b/svg-flatten/src/main.cpp
index d96785b..e120a9c 100644
--- a/svg-flatten/src/main.cpp
+++ b/svg-flatten/src/main.cpp
@@ -424,10 +424,8 @@ int main(int argc, char **argv) {
doc.render(rset, *top_sink, &sel);
- if (!is_svg) {
- remove(frob.c_str());
- remove(barf.c_str());
- }
+ remove(frob.c_str());
+ remove(barf.c_str());
if (flattener) {
delete flattener;