Skip to content

Commit

Permalink
GPSManager: on stop() release reference to observer.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisguse committed Aug 13, 2023
1 parent d8e05da commit bf0aac7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class GPSManager implements SensorConnector, LocationListenerCompat, GpsS

private static final String LOCATION_PROVIDER = LocationManager.GPS_PROVIDER;

private final TrackPointCreator trackPointCreator;
private TrackPointCreator trackPointCreator;
private Context context;
private Handler handler;

Expand Down Expand Up @@ -71,6 +71,8 @@ public void stop(Context context) {

gpsStatusManager.stop();
gpsStatusManager = null;

trackPointCreator = null;
}

@Override
Expand Down

0 comments on commit bf0aac7

Please sign in to comment.