diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-07 16:05:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-07 16:05:29 +0300 |
commit | 874aca61aeace594632a913c9d55dbf892c80f5f (patch) | |
tree | 8b3216960ce4562bd6cc49ea729bb699e6bd01bf | |
parent | 54f35a2def4709ec4aa5973bba6223812239b3c3 (diff) | |
download | plus-874aca61aeace594632a913c9d55dbf892c80f5f.tar.gz plus-874aca61aeace594632a913c9d55dbf892c80f5f.tar.bz2 plus-874aca61aeace594632a913c9d55dbf892c80f5f.tar.xz plus-874aca61aeace594632a913c9d55dbf892c80f5f.zip |
fix possible memory leak in texture compression detection.
-rw-r--r-- | src/graphicsmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index b82994d67..10eaea9ab 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -681,6 +681,7 @@ void GraphicsManager::updateTextureFormat() const { if (compressionFormat == 3) { + delete []formats; OpenGLImageHelper::setInternalTextureType( GL_COMPRESSED_RGBA_ARB); logger->log1("using ARB texture compression"); |