mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Fixed memory leak in ImageIO.cpp
This commit is contained in:
parent
6b373924d2
commit
56dffeed8c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue