Fixed memory leak in ImageIO.cpp

This commit is contained in:
Aloshi 2013-07-03 03:17:34 -05:00
parent 6b373924d2
commit 56dffeed8c

View file

@ -59,6 +59,7 @@ std::vector<unsigned char> ImageIO::loadFromMemoryRGBA32(const unsigned char * d
rawData = std::vector<unsigned char>(tempData, tempData + width * height * 4);
//free bitmap data
FreeImage_Unload(fiBitmap);
delete[] tempData;
}
}
else