diff options
author | Blake Thompson <flippmoke@gmail.com> | 2017-12-18 16:02:43 -0600 |
---|---|---|
committer | Blake Thompson <flippmoke@gmail.com> | 2017-12-18 16:02:43 -0600 |
commit | 900a05fbfc0a9b146da3c1358b08c455ddaebd19 (patch) | |
tree | d73e2cc9caf449cfe0c6f58fc73f8ff39151ad4c | |
parent | 15791b58695cebc504a2b7e59f140618bd98b87e (diff) |
Prevent out of memory error from close paths with high command countupstream/3.5.4-patch
-rw-r--r-- | src/mbgl/tile/vector_tile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/tile/vector_tile.cpp b/src/mbgl/tile/vector_tile.cpp index f6f8de72d..1b8c268d0 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"); } |