[Scummvm-git-logs] scummvm branch-2-7 -> d1c610eeffda97b9d7f794b81627c7a628d49543

lephilousophe noreply at scummvm.org
Sat Jan 28 19:17:08 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d1c610eeff GRAPHICS: OPENGL: Free log after using it


Commit: d1c610eeffda97b9d7f794b81627c7a628d49543
    https://github.com/scummvm/scummvm/commit/d1c610eeffda97b9d7f794b81627c7a628d49543
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-01-28T20:16:56+01:00

Commit Message:
GRAPHICS: OPENGL: Free log after using it

Changed paths:
    graphics/opengl/shader.cpp


diff --git a/graphics/opengl/shader.cpp b/graphics/opengl/shader.cpp
index 6ece5c981f7..652e4cac3b3 100644
--- a/graphics/opengl/shader.cpp
+++ b/graphics/opengl/shader.cpp
@@ -141,6 +141,8 @@ GLuint Shader::createDirectShader(size_t shaderSourcesCount, const char *const *
 
 		_error = Common::String::format("Could not compile shader %s: %s", name.c_str(), log);
 		warning("Shader::createDirectShader(): %s", _error.c_str());
+
+		delete[] log;
 		return 0;
 	}
 




More information about the Scummvm-git-logs mailing list