From cce869ae0169970ef20663d04701c58527755ddf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 16 Nov 2013 17:05:51 -0500 Subject: [PATCH] [Core] Fix a mismatched dealloc in Render.cpp in the OGL backend. Should be delete[] --- Source/Core/VideoBackends/OGL/Src/Render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/OGL/Src/Render.cpp b/Source/Core/VideoBackends/OGL/Src/Render.cpp index 8f06c2547c..7d68bb4924 100644 --- a/Source/Core/VideoBackends/OGL/Src/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Src/Render.cpp @@ -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; }