mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 03:55:40 +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);
|
rawData = std::vector<unsigned char>(tempData, tempData + width * height * 4);
|
||||||
//free bitmap data
|
//free bitmap data
|
||||||
FreeImage_Unload(fiBitmap);
|
FreeImage_Unload(fiBitmap);
|
||||||
|
delete[] tempData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue