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