Delete the data buffer of LineAtlas

Data buffer is allocated but never deleted.
This commit is contained in:
Thiago Marcos P. Santos
2015-03-18 02:14:23 +02:00
parent 490c172b35
commit ceb7049389

View File

@@ -19,6 +19,7 @@ LineAtlas::~LineAtlas() {
std::lock_guard<std::recursive_mutex> lock(mtx);
MBGL_CHECK_ERROR(glDeleteTextures(1, &texture));
delete[] data;
texture = 0;
}