square / mortar

A simple library that makes it easy to pair thin views with dedicated controllers, isolated from most of the vagaries of the Activity life cycle.
Apache License 2.0
2.16k stars 156 forks source link

Avoid memory leak in sample #136

Closed almozavr closed 9 years ago

almozavr commented 9 years ago

ActionBarOwner is Application-wide singleton, it's assigned config with anonymous Action0 which will hold ref. to outer class (activity). So, exiting activity won't destroy it due to owner holding ref to config holding ref to action holding ref to activity.