Delete the data buffer of LineAtlas
Data buffer is allocated but never deleted.
This commit is contained in:
@@ -19,6 +19,7 @@ LineAtlas::~LineAtlas() {
|
||||
std::lock_guard<std::recursive_mutex> lock(mtx);
|
||||
|
||||
MBGL_CHECK_ERROR(glDeleteTextures(1, &texture));
|
||||
delete[] data;
|
||||
texture = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user