diff --git a/src/mbgl/geometry/line_atlas.cpp b/src/mbgl/geometry/line_atlas.cpp index bf6944fbc..8be1a8d53 100644 --- a/src/mbgl/geometry/line_atlas.cpp +++ b/src/mbgl/geometry/line_atlas.cpp @@ -19,6 +19,7 @@ LineAtlas::~LineAtlas() { std::lock_guard lock(mtx); MBGL_CHECK_ERROR(glDeleteTextures(1, &texture)); + delete[] data; texture = 0; }