W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn/input UploadInputParameter.java,1.2,1.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 01 Oct 2009 14:01:39 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MtMDz-0001KC-96@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/input
In directory hutz:/tmp/cvs-serv5009/src/org/w3c/unicorn/input

Modified Files:
	UploadInputParameter.java 
Log Message:
overrides dispose()

Index: UploadInputParameter.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/input/UploadInputParameter.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- UploadInputParameter.java	18 Sep 2009 14:56:06 -0000	1.2
+++ UploadInputParameter.java	1 Oct 2009 14:01:37 -0000	1.3
@@ -45,5 +45,14 @@
 	public EnumInputMethod getInputMethod() {
 		return EnumInputMethod.UPLOAD;
 	}
+	
+	@Override
+	public void dispose() {
+		super.dispose();
+		if (null != this.file) {
+			this.file.delete();
+			this.file = null;
+		}
+	}
 
 }
Received on Thursday, 1 October 2009 14:01:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC