Skip to content

Commit 5e23a39

Browse files
committed
fix(android): nullify lifecycleObserver to prevent memory leak
2 parents 2606efa + 7810c49 commit 5e23a39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ class GoogleMapsViewImpl(
813813
if (destroyed) return@onUi
814814
destroyed = true
815815
lifecycleObserver?.toDestroyedState()
816+
lifecycleObserver = null
816817
markerBuilder.cancelAllJobs()
817818
clearMarkers()
818819
clearPolylines()

0 commit comments

Comments
 (0)