From df19fc3f11117db76eae365b577539e04c1ff4f0 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Mon, 14 May 2018 18:27:06 -0500 Subject: [PATCH] Delete contents after use. --- shaders/glsl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shaders/glsl.cpp b/shaders/glsl.cpp index eb2023be..c303cb76 100644 --- a/shaders/glsl.cpp +++ b/shaders/glsl.cpp @@ -405,6 +405,8 @@ bool GLSLShader::load_shader (char *filename) return false; } + delete[] contents; + p->program = glCreateProgram (); glAttachShader (p->program, vertex_shader);