shader: delete shader on success path (#13682)

dont leak glsl shader on success path.
This commit is contained in:
Tom Englund 2026-03-10 18:46:54 +01:00 committed by GitHub
parent bc5bd8970e
commit a714c7fe0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,6 +116,7 @@ std::string CShaderLoader::processSource(const std::string& source, glslang_stag
code += line + "\n";
}
glslang_shader_delete(shader);
return code;
}