[Scummvm-git-logs] scummvm master -> b1ebc64c037f2a1686ee744cc487a2c3e4229f8e
lephilousophe
noreply at scummvm.org
Sat Jan 28 17:46:54 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:
b1ebc64c03 GRAPHICS: OPENGL: Free log after using it
Commit: b1ebc64c037f2a1686ee744cc487a2c3e4229f8e
https://github.com/scummvm/scummvm/commit/b1ebc64c037f2a1686ee744cc487a2c3e4229f8e
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-01-28T18:44:51+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