gumil / navigator-demo

Using Navigator library to rewrite the Conductor Demo App
8 stars 0 forks source link

possible memory leak on rotation in MainActivity #1

Closed Zhuinden closed 7 years ago

Zhuinden commented 7 years ago

https://github.com/gumil/navigator-demo/blob/master/app/src/main/kotlin/io/github/gumil/testnavigator/MainActivity.kt#L27

a companion object's field is set to be current activity, but if you rotate then it doesn't seem to be cleared in onDestroy()