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