Close a multiprocess file handle.

Bug: 5034192
Change-Id: I9c3d757cfae313e9b7510e167de797a74c74a351
This commit is contained in:
Jean Chalard 2011-07-26 22:13:34 +09:00
parent f24eb69d3f
commit d3da6e6311

View file

@ -107,6 +107,7 @@ public class BinaryDictionaryFileDumper {
if (null == afd) return null;
final String fileName =
copyFileTo(afd.createInputStream(), getCacheFileNameForLocale(locale, context));
afd.close();
return Arrays.asList(AssetFileAddress.makeFromFileName(fileName));
}