src/Pure/System/standard_system.scala
changeset 39582 a873158542d0
parent 39578 b75164153c37
child 39705 41e9f69c553d
--- a/src/Pure/System/standard_system.scala	Tue Sep 21 22:16:22 2010 +0200
+++ b/src/Pure/System/standard_system.scala	Wed Sep 22 00:17:35 2010 +0200
@@ -101,6 +101,7 @@
   def with_tmp_file[A](prefix: String)(body: File => A): A =
   {
     val file = File.createTempFile(prefix, null)
+    file.deleteOnExit
     try { body(file) } finally { file.delete }
   }