[Core] Fix a mismatched dealloc in Render.cpp in the OGL backend. Should be delete[]

This commit is contained in:
Lioncash 2013-11-16 17:05:51 -05:00
parent c46aabc853
commit cce869ae01
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }