From d8564506124fe6a683ef0adf8ca5cf5348756f8d Mon Sep 17 00:00:00 2001 From: Mike LeBeau Date: Sun, 17 Jan 2010 16:55:56 -0500 Subject: [PATCH] Reintroduce Amith's memory leak fix from 388ce92ab8a635c5ad44620dad59baf05dfea510, after it was clobbered by my overwrite of LatinIME with the voice version. --- src/com/android/inputmethod/latin/LatinIME.java | 1 + 1 file changed, 1 insertion(+) 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);