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

Fix dangling KVO observer crash #4806

Merged
merged 1 commit into from
Apr 22, 2016
Merged

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Apr 22, 2016

Fixed a crash when deallocating an MGLMapView that has point annotations. Now we explicitly remove all the annotations from the view and thus remove all remaining KVO observers on those annotations.

Fixes #4805.

/cc @boundsj @friedbunny

@1ec5 1ec5 self-assigned this Apr 22, 2016
@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS crash labels Apr 22, 2016
@1ec5 1ec5 added this to the ios-v3.3.0 milestone Apr 22, 2016
@1ec5 1ec5 force-pushed the 1ec5-annotation-kvo-dealloc-4805 branch from 6aa7f4c to 58b3592 Compare April 22, 2016 20:53
Fixed a crash when deallocating an MGLMapView that has point annotations. Now we explicitly remove all the annotations from the view and thus remove all remaining KVO observers on those annotations.

Fixes #4805.
@1ec5 1ec5 force-pushed the 1ec5-annotation-kvo-dealloc-4805 branch from 58b3592 to 1039f21 Compare April 22, 2016 22:44
@1ec5
Copy link
Contributor Author

1ec5 commented Apr 22, 2016

Tests passed on Bitrise, but another commit slotted itself into master before Travis would start building. Merging now.

@1ec5 1ec5 merged commit 1039f21 into master Apr 22, 2016
@1ec5 1ec5 deleted the 1ec5-annotation-kvo-dealloc-4805 branch April 22, 2016 22:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant