[Core] Fix a mismatched dealloc in Render.cpp in the OGL backend. Should be delete[]
This commit is contained in:
parent
c46aabc853
commit
cce869ae01
|
@ -1818,7 +1818,7 @@ bool Renderer::SaveScreenshot(const std::string &filename, const TargetRectangle
|
|||
// Show failure message
|
||||
if (GL_REPORT_ERROR() != GL_NO_ERROR)
|
||||
{
|
||||
free(data);
|
||||
delete[] data;
|
||||
OSD::AddMessage("Error capturing or saving screenshot.", 2000);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue