summaryrefslogtreecommitdiff
path: root/src/mbgl/map/live_tile_data.cpp
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-04-15 22:21:04 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-04-15 22:21:04 -0700
commitc49e6157f1d90c00292643914b2f76ebeb02bf4c (patch)
treeef7ec796329d446df5c74851130bb9b8473ad0bb /src/mbgl/map/live_tile_data.cpp
parentd29534e43750793046c82db9e429882e13bd36f5 (diff)
downloadqtlocation-mapboxgl-c49e6157f1d90c00292643914b2f76ebeb02bf4c.tar.gz
add comment
Diffstat (limited to 'src/mbgl/map/live_tile_data.cpp')
-rw-r--r--src/mbgl/map/live_tile_data.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/map/live_tile_data.cpp b/src/mbgl/map/live_tile_data.cpp
index 8e241f9813..8b4f46deb5 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;
}