Reintroduce Amith's memory leak fix from 388ce92ab8,

after it was clobbered by my overwrite of LatinIME with the voice version.
main
Mike LeBeau 2010-01-17 16:55:56 -05:00
parent 466741d8a7
commit d856450612
1 changed files with 1 additions and 0 deletions

View File

@ -331,6 +331,7 @@ public class LatinIME extends InputMethodService
mSuggest.close();
}
mSuggest = new Suggest(this, R.raw.main);
if (mUserDictionary != null) mUserDictionary.close();
mUserDictionary = new UserDictionary(this);
if (mContactsDictionary == null) {
mContactsDictionary = new ContactsDictionary(this);