mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
don't leak a reference to the service
This commit is contained in:
parent
94dbb237e8
commit
f7f201adbc
1 changed files with 2 additions and 0 deletions
|
|
@ -241,6 +241,8 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
|
||||
override fun onDestroy() {
|
||||
unregisterMeshReceiver()
|
||||
UIState.meshService =
|
||||
null // When our activity goes away make sure we don't keep a ptr around to the service
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue