diff options
author | 2010-01-17 16:55:56 -0500 | |
---|---|---|
committer | 2010-01-17 16:55:56 -0500 | |
commit | d8564506124fe6a683ef0adf8ca5cf5348756f8d (patch) | |
tree | caea27bebc215429474d6c1d5ff5cf7816b9327d | |
parent | 466741d8a78965b8509bf527344f289e50873092 (diff) | |
download | latinime-d8564506124fe6a683ef0adf8ca5cf5348756f8d.tar.gz latinime-d8564506124fe6a683ef0adf8ca5cf5348756f8d.tar.xz latinime-d8564506124fe6a683ef0adf8ca5cf5348756f8d.zip |
Reintroduce Amith's memory leak fix from 388ce92ab8a635c5ad44620dad59baf05dfea510,
after it was clobbered by my overwrite of LatinIME with the voice version.
-rw-r--r-- | src/com/android/inputmethod/latin/LatinIME.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java index cbf3a4a52..762f292f6 100644 --- a/src/com/android/inputmethod/latin/LatinIME.java +++ b/src/com/android/inputmethod/latin/LatinIME.java @@ -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); |