Skip to content

Commit c796ce8

Browse files
committed
Remove deinit on map
Was crashing after certain events (like a marker being tapped). It doesn't seem to be leaking without it there so I'm assuming the map cleans itself without the need to explicitly remove all markers, annotations etc.
1 parent 1055d8a commit c796ce8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ios/Classes/MapView/AppleMapController.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ public class AppleMapController: NSObject, FlutterPlatformView {
4848
}
4949
}
5050

51-
deinit {
52-
self.removeAllAnnotations()
53-
self.removeAllCircles()
54-
self.removeAllPolygons()
55-
self.removeAllPolylines()
56-
}
57-
5851
public func view() -> UIView {
5952
return mapView
6053
}

0 commit comments

Comments
 (0)