mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 23:59:54 -06:00
[Core] Fix a mismatched dealloc in Render.cpp in the OGL backend. Should be delete[]
This commit is contained in:
@ -1818,7 +1818,7 @@ bool Renderer::SaveScreenshot(const std::string &filename, const TargetRectangle
|
|||||||
// Show failure message
|
// Show failure message
|
||||||
if (GL_REPORT_ERROR() != GL_NO_ERROR)
|
if (GL_REPORT_ERROR() != GL_NO_ERROR)
|
||||||
{
|
{
|
||||||
free(data);
|
delete[] data;
|
||||||
OSD::AddMessage("Error capturing or saving screenshot.", 2000);
|
OSD::AddMessage("Error capturing or saving screenshot.", 2000);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user