diff src/org/tmatesoft/hg/repo/HgIgnore.java @ 225:fad70a9e6c7f

Close stream after reading .hgignore
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 25 May 2011 05:13:43 +0200
parents 8248aae33f7d
children 7af843ecc378
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgIgnore.java	Wed May 25 03:07:39 2011 +0200
+++ b/src/org/tmatesoft/hg/repo/HgIgnore.java	Wed May 25 05:13:43 2011 +0200
@@ -76,6 +76,7 @@
 				result.add(Pattern.compile(line)); // case-sensitive
 			}
 		}
+		fr.close();
 		result.trimToSize();
 		entries = result;
 	}