diff --git a/lib/widgets/telemetry_location_map.dart b/lib/widgets/telemetry_location_map.dart index f6baff71..b47d16d1 100644 --- a/lib/widgets/telemetry_location_map.dart +++ b/lib/widgets/telemetry_location_map.dart @@ -41,6 +41,12 @@ class _TelemetryLocationMapState extends State { LatLng get _position => LatLng(widget.latitude, widget.longitude); + @override + void dispose() { + _mapController.dispose(); + super.dispose(); + } + @override void didUpdateWidget(covariant TelemetryLocationMap oldWidget) { super.didUpdateWidget(oldWidget);