OSDN Git Service

Throw away TranscriptScreen backing store on session finish
authorSteven Luo <steven+android@steven676.net>
Sat, 27 Aug 2011 19:37:47 +0000 (12:37 -0700)
committerJack Palevich <jack.palevich@gmail.com>
Sat, 27 Aug 2011 19:37:47 +0000 (12:37 -0700)
commit4ffcbfddc7b8192b73ba4da6dea6560e05676fc0
tree92aa166d5b2e64776f4a47570f1b465e5c208ef1
parent47cc8a2b6c56ea0214c59445852e63bbfcf030d6
Throw away TranscriptScreen backing store on session finish

Android's InputMethodManager seems to hold a reference to a finished
activity object for a while after the activity is destroyed.  This
keeps everything the activity holds a reference to in memory, which in
our case includes a fairly significant chunk of memory: the backing
store to the TranscriptScreen.  Throw this away when it's not needed, to
reduce the memory impact of this behavior.
src/jackpal/androidterm/session/TermSession.java
src/jackpal/androidterm/session/TranscriptScreen.java