Reintroduce Amith's memory leak fix from 388ce92ab8a635c5ad44620dad59baf05dfea510, after it was clobbered by my overwrite of LatinIME with the voice version.
Reintroduce Amith's memory leak fix from 388ce92ab8a635c5ad44620dad59baf05dfea510,
after it was clobbered by my overwrite of LatinIME with the voice version.

klausw/hackerskeyboard,klausw/hackerskeyboard,klausw/hackerskeyboard,klausw/hackerskeyboard