summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-07 16:05:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-07 16:05:29 +0300
commit874aca61aeace594632a913c9d55dbf892c80f5f (patch)
tree8b3216960ce4562bd6cc49ea729bb699e6bd01bf /src/graphicsmanager.cpp
parent54f35a2def4709ec4aa5973bba6223812239b3c3 (diff)
downloadplus-874aca61aeace594632a913c9d55dbf892c80f5f.tar.gz
plus-874aca61aeace594632a913c9d55dbf892c80f5f.tar.bz2
plus-874aca61aeace594632a913c9d55dbf892c80f5f.tar.xz
plus-874aca61aeace594632a913c9d55dbf892c80f5f.zip
fix possible memory leak in texture compression detection.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp1
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");