aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/sites
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-07-09 12:48:04 -0700
committerXavier Ducrohet <xav@android.com>2010-07-09 14:18:41 -0700
commita46c5e60473548bbfa94f526ef68247b1470ca28 (patch)
tree3f6f6893bf0b1bcc161d5da23fcd85ab959a261c /eclipse/sites
parentde559da1ce494e61e63b85ce8d10007cdfa1e086 (diff)
downloadsdk-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 'eclipse/sites')
-rw-r--r--eclipse/sites/external/.gitignore2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclipse/sites/external/.gitignore b/eclipse/sites/external/.gitignore
new file mode 100644
index 0000000..ccfee1d
--- /dev/null
+++ b/eclipse/sites/external/.gitignore
@@ -0,0 +1,2 @@
+*.jar
+*/*.jar \ No newline at end of file