Skip to content

Commit 20fe770

Browse files
committed
Fix memory leak by nullifying lifecycleObserver
1 parent 5499fd8 commit 20fe770

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)