summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Thompson <flippmoke@gmail.com>2017-12-18 16:02:43 -0600
committerBlake Thompson <flippmoke@gmail.com>2017-12-18 16:02:43 -0600
commit900a05fbfc0a9b146da3c1358b08c455ddaebd19 (patch)
treed73e2cc9caf449cfe0c6f58fc73f8ff39151ad4c
parent15791b58695cebc504a2b7e59f140618bd98b87e (diff)
downloadqtlocation-mapboxgl-upstream/3.5.4-patch.tar.gz
Prevent out of memory error from close paths with high command countupstream/3.5.4-patch
-rw-r--r--src/mbgl/tile/vector_tile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/tile/vector_tile.cpp b/src/mbgl/tile/vector_tile.cpp
index f6f8de72d1..1b8c268d07 100644
--- a/src/mbgl/tile/vector_tile.cpp
+++ b/src/mbgl/tile/vector_tile.cpp
@@ -245,7 +245,7 @@ GeometryCollection VectorTileFeature::getGeometries() const {
if (!line->empty()) {
line->push_back((*line)[0]);
}
-
+ length = 0;
} else {
throw std::runtime_error("unknown command");
}