mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 07:39:17 +00:00
[Core] Fix a mismatched dealloc in Render.cpp in the OGL backend. Should be delete[]
This commit is contained in:
parent
c46aabc853
commit
cce869ae01
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue