mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
[fenix] for https://github.com/mozilla-mobile/fenix/issues/13478, letting go of the fragment resource inside onDestroyView of AddonsManagementFragment to avoid memory leak
This commit is contained in:
parent
244ac47f87
commit
f84b53e538
@ -66,6 +66,12 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroyView() {
|
||||
super.onDestroyView()
|
||||
// letting go of the resources to avoid memory leak.
|
||||
adapter = null
|
||||
}
|
||||
|
||||
private fun bindRecyclerView(view: View) {
|
||||
val managementView = AddonsManagementView(
|
||||
navController = findNavController(),
|
||||
|
Loading…
Reference in New Issue
Block a user