diff options
author | Xavier Ducrohet <xav@android.com> | 2010-07-09 12:48:04 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-07-09 14:18:41 -0700 |
commit | a46c5e60473548bbfa94f526ef68247b1470ca28 (patch) | |
tree | 3f6f6893bf0b1bcc161d5da23fcd85ab959a261c /hierarchyviewer2/libs | |
parent | de559da1ce494e61e63b85ce8d10007cdfa1e086 (diff) | |
download | sdk-a46c5e60473548bbfa94f526ef68247b1470ca28.zip sdk-a46c5e60473548bbfa94f526ef68247b1470ca28.tar.gz sdk-a46c5e60473548bbfa94f526ef68247b1470ca28.tar.bz2 |
Fix a memory leak in the Graphical Layout Editor.
The rendering requires a looper, but never actually uses it.
Some views (like scrollView) make use of messages during rendering
putting messages into the looper message queue which was never
read or emptied.
In the case of the scrollview, the message actually contains
a reference to the scrollview, which would then leak (with all
its children views)
The fix is to delete the looper that was created. This must be
done by reflection as there's no public access to it, and this
must be done from ADT so that all versions of layoutlib get
the fix.
Change-Id: I998ad0ec17e77e36a42d77f8ab888917a9ff6441
Diffstat (limited to 'hierarchyviewer2/libs')
0 files changed, 0 insertions, 0 deletions