From 1007dc9754b05fe83c720096cfbea6cb55158e0f Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 26 Oct 2015 10:40:07 +0200 Subject: [core] Initialize attributes before using them Spotted by valgrind. --- src/mbgl/map/vector_tile_data.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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(angle, pitch, collisionDebug)), source(source_), lastAngle(angle), - currentAngle(angle) { + currentAngle(angle), + currentPitch(pitch), + currentCollisionDebug(collisionDebug) { } VectorTileData::~VectorTileData() { -- cgit v1.2.1