mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-02 09:17:58 +02:00
shader: delete shader on success path (#13682)
dont leak glsl shader on success path.
This commit is contained in:
parent
bc5bd8970e
commit
a714c7fe0e
1 changed files with 1 additions and 0 deletions
|
|
@ -116,6 +116,7 @@ std::string CShaderLoader::processSource(const std::string& source, glslang_stag
|
|||
code += line + "\n";
|
||||
}
|
||||
|
||||
glslang_shader_delete(shader);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue