Skip to content

Commit

Permalink
fix memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Sep 16, 2016
1 parent 976888c commit ded04ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rts/Rendering/Shaders/Shader.cpp
Expand Up @@ -199,6 +199,7 @@ namespace Shader {
CompiledShaderObjectUniquePtr res(new CompiledShaderObject(), [](CompiledShaderObject* so) {
glDeleteShader(so->id);
so->id = 0;
SafeDelete(so);
});

assert(!curShaderSrc.empty());
Expand Down

1 comment on commit ded04ec

@PicassoCT
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bravo!

Please sign in to comment.