appcelerator/titanium_mobile — pull request #1662 by joshthecoder (2012-03-13 22:02:06+00:00)
Title: [TIMOB-7897] Android: Memory leak by windows not properly cleaning up after close.

This resolves a memory issues seen with "heavy" windows.
The issue is caused by a bug in older Android versions which don't appear
to "release" a Messenger passed inside an Intent's extra field. To work around
this bug I moved the Handler callback into a static, nested class. This allows
TiUIActivityWindow to get released and reduces the memory leak to a minimal amount.

See [TIMOB-7897](https://jira.appcelerator.org/browse/TIMOB-7897) for testing details.