Create a super easy app with a Fragment detail screen (I've used File>New>New Project...>Primary / Detail Flow
Add the ViewBindingPropertyDelegate and LeakCanary dependencies
Change the ItemDetailFragment to extend Fragment(R.layout.fragment_item_detail) and replace the binding with this private val binding: FragmentItemDetailBinding by viewBinding()
Navigate to the detail fragment, navigate back and wait a few seconds
See that LeakCanary is complaining
I have tested this on versions 1.5.0-beta01 and 1.4.7.
Steps to reproduce
Fragment(R.layout.fragment_item_detail)
and replace the binding with thisprivate val binding: FragmentItemDetailBinding by viewBinding()
I have tested this on versions
1.5.0-beta01
and1.4.7
.Test project: LeakCanarytest.zip
LeakCanary report