From 56dffeed8cbecb3e8885d193d085764bffed3be1 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Wed, 3 Jul 2013 03:17:34 -0500 Subject: [PATCH] Fixed memory leak in ImageIO.cpp --- src/ImageIO.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ImageIO.cpp b/src/ImageIO.cpp index f6f599817..c5106debb 100644 --- a/src/ImageIO.cpp +++ b/src/ImageIO.cpp @@ -59,6 +59,7 @@ std::vector ImageIO::loadFromMemoryRGBA32(const unsigned char * d rawData = std::vector(tempData, tempData + width * height * 4); //free bitmap data FreeImage_Unload(fiBitmap); + delete[] tempData; } } else