diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 9e5076ff6..e72a17480 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -140,6 +140,8 @@ void MapContext::loadStyleJSON(const std::string& json, const std::string& base) assert(Environment::currentlyOn(ThreadType::Map)); sprite.reset(); + style.reset(); + style = util::make_unique