Skip to content

Commit

Permalink
[Core] Fix a mismatched dealloc in Render.cpp in the OGL backend. Sho…
Browse files Browse the repository at this point in the history
…uld be delete[]
  • Loading branch information
lioncash committed Nov 16, 2013
1 parent c46aabc commit cce869a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/OGL/Src/Render.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit cce869a

Please sign in to comment.