shader_glsl: Fix potential memory leaks
Merge pull request #1203 from lioncash/glsl-leak

shader_glsl: Fix potential memory leaks