From 7fb2ad2d5ba181ff1066f47fa5c5ba341cd198e7 Mon Sep 17 00:00:00 2001 From: matto Date: Thu, 29 Oct 2015 22:37:14 -0400 Subject: [PATCH] Fixing what is almost certainly a memory leak --- src/Textures.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Textures.cpp b/src/Textures.cpp index 427718ed..25acadc1 100644 --- a/src/Textures.cpp +++ b/src/Textures.cpp @@ -820,6 +820,7 @@ void TextureCache::_loadBackground(CachedTexture *pTexture) } if (m_curUnpackAlignment > 1) glPixelStorei(GL_UNPACK_ALIGNMENT, m_curUnpackAlignment); + free(pSwapped); free(pDest); }