This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
MGLOpenGLStyleLayer is released prior to calling MGLFinishCustomStyleLayer #10755
Labels
Milestone
Changes to core GL for asynchronous rendering changed when the
mbgl::style::CustomLayer
'sCustomLayerDeinitializeFunction
callback method is invoked.This callback is now invoked after the layer is removed from a style, and when it's corresponding
RenderCustomLayer
instance is destroyed.The
[MGLOpenGLStyleLayer setStyle:]
method is releasing itself as soon as the layer is removed from the style, which leaves the underlyingCustomLayer::Impl
instance holding on to a dangling pointer.This leads to
EXC_BAD_ACCESS
exceptions with call stack:The text was updated successfully, but these errors were encountered: