diff --git a/src/mbgl/map/live_tile_data.cpp b/src/mbgl/map/live_tile_data.cpp index 8e241f981..8b4f46deb 100644 --- a/src/mbgl/map/live_tile_data.cpp +++ b/src/mbgl/map/live_tile_data.cpp @@ -54,7 +54,9 @@ void LiveTileData::parse() { return; } } else { + // Clear the style so that we don't have a cycle in the shared_ptr references. style.reset(); + state = State::obsolete; }