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

[ios, macos] Avoid implicit capture of MBGLOfflineRegionObserver this pointer (agua) #11823

Merged
merged 1 commit into from
May 2, 2018

Conversation

jfirebaugh
Copy link
Contributor

Cherry picks #11821, adding a changelog entry.

… pointer

MBGLOfflineRegionObserver is owned by the offline database thread, and might be destroyed by the time the dispatch_async completes. Instead of implicitly capturing this, capture a copy of the MBGLOfflinePack weak pointer.
@jfirebaugh jfirebaugh requested a review from 1ec5 May 2, 2018 21:42
@jfirebaugh jfirebaugh changed the title [ios, macos] Avoid implicit capture of MBGLOfflineRegionObserver this pointer [ios, macos] Avoid implicit capture of MBGLOfflineRegionObserver this pointer (agua) May 2, 2018
Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jfirebaugh jfirebaugh merged commit 0bd9eac into release-agua May 2, 2018
@jfirebaugh jfirebaugh deleted the cp-6092 branch May 2, 2018 23:36
@lilykaiser lilykaiser added this to the ios-v3.7.7 milestone May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants