diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-10-26 10:40:07 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-10-26 10:41:16 +0200 |
commit | 1007dc9754b05fe83c720096cfbea6cb55158e0f (patch) | |
tree | 5e371c4bf068cf3500f46fea4f8ccd61076abc4f | |
parent | 8ca818f1ced7f5ad13aeb184974c9f0875d6ac1a (diff) | |
download | qtlocation-mapboxgl-1007dc9754b05fe83c720096cfbea6cb55158e0f.tar.gz |
[core] Initialize attributes before using them
Spotted by valgrind.
-rw-r--r-- | src/mbgl/map/vector_tile_data.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/map/vector_tile_data.cpp b/src/mbgl/map/vector_tile_data.cpp index 048e7083bf..3fe96599d6 100644 --- a/src/mbgl/map/vector_tile_data.cpp +++ b/src/mbgl/map/vector_tile_data.cpp @@ -28,7 +28,9 @@ VectorTileData::VectorTileData(const TileID& id_, std::make_unique<CollisionTile>(angle, pitch, collisionDebug)), source(source_), lastAngle(angle), - currentAngle(angle) { + currentAngle(angle), + currentPitch(pitch), + currentCollisionDebug(collisionDebug) { } VectorTileData::~VectorTileData() { |