Blame SOURCES/foomatic-remove-tmpfile.patch

c8d41b
diff --git a/filter/foomatic-rip/foomaticrip.c b/filter/foomatic-rip/foomaticrip.c
c8d41b
index 7dc2426..146125f 100644
c8d41b
--- a/filter/foomatic-rip/foomaticrip.c
c8d41b
+++ b/filter/foomatic-rip/foomaticrip.c
c8d41b
@@ -672,6 +672,12 @@ int print_file(const char *filename, int convert)
c8d41b
                 if (out != NULL)
c8d41b
                   fclose(out);
c8d41b
 
c8d41b
+		// Delete temp file if we created one
c8d41b
+		if ( *tmpfilename ) {
c8d41b
+		  _log("Removing temporary file %s\n", tmpfilename);
c8d41b
+		  unlink(tmpfilename);
c8d41b
+		}
c8d41b
+
c8d41b
                 return ret;
c8d41b
             }
c8d41b