changeset 225:fad70a9e6c7f

Close stream after reading .hgignore
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 25 May 2011 05:13:43 +0200
parents 7fe5982bcac0
children 26ad7827a62d
files src/org/tmatesoft/hg/repo/HgIgnore.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;
 	}