diff options
author | jaumeolba <jaumeolba@gmail.com> | 2016-01-26 13:40:37 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2016-02-05 10:59:50 +0100 |
commit | 026e6a75600f7109828fc33ff97b117a3a5090a7 (patch) | |
tree | 999c5b0076a43b6a225f55fa55bbe9300a6de2df /CHANGELOG.md | |
parent | 8e5862bd5d7038d35ffbc485e807d24b04ba5e0a (diff) | |
download | qtlocation-mapboxgl-026e6a75600f7109828fc33ff97b117a3a5090a7.tar.gz |
Fix Memory leak caused by duplicated add in LocationListener list
The addLocationListener method didn't check if the LocationListener was
already in the list.
From MapView, if we call setMyLocationEnabled(true), it adds a
LocationListener and onResume adds the same LocationListener again, but
is just removed by onPause.
So LocationListener is added twice but removed just once, so
LocationServices singleton keeps an instance of the the LocationListener
that is never released.
Diffstat (limited to 'CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions