Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Fix crash when quitting while a map view has annotations #252

Merged
merged 2 commits into from
Apr 2, 2020

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Apr 1, 2020

If the underlying mbgl::Map has been torn down, so has the mbgl annotation, so don’t worry about the mbgl::Map, but keep unregistering KVO and other SDK-side annotation resources.

Also wrapped MGLMapView’s mbgl::Map reference in a std::unique_ptr for increased pointer safety.

Fixes #87.

/cc @mapbox/maps-ios

1ec5 added 2 commits April 1, 2020 00:50
Also removed unused method declarations.
If the underlying mbgl::Map has been torn down, so has the mbgl annotation, so don’t worry about the mbgl::Map but keep unregistering KVO and other SDK-side annotation resources.
@1ec5 1ec5 added bug Something isn't working ios labels Apr 1, 2020
@1ec5 1ec5 requested a review from a team April 1, 2020 08:17
@1ec5 1ec5 self-assigned this Apr 1, 2020
@chloekraw
Copy link
Contributor

@1ec5 let's cherrypick this into the 5.8.0 release?

@1ec5
Copy link
Contributor Author

1ec5 commented Apr 2, 2020

master and release-vanillashake have been even with each other this release cycle, so I’ve just been fast-forward-merging master into release-vanillashake without any cherry-picking.

@nishant-karajgikar
Copy link
Contributor

Thanks for this @1ec5 !

@1ec5 1ec5 merged commit 1a9ab40 into master Apr 2, 2020
@1ec5 1ec5 deleted the 1ec5-underlying-map-crash-87 branch April 2, 2020 14:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working ios
Projects
None yet
3 participants