Fix Shader memory leaks;

This commit is contained in:
bjorn 2016-11-18 02:08:36 -08:00
parent 3c2fc33f1c
commit 67b55ac7f6
1 changed files with 3 additions and 0 deletions

View File

@ -144,6 +144,9 @@ Shader* lovrShaderCreate(const char* vertexSource, const char* fragmentSource) {
void lovrShaderDestroy(Shader* shader) {
glDeleteProgram(shader->id);
mat4_deinit(shader->transform);
mat4_deinit(shader->projection);
map_deinit(&shader->uniforms);
free(shader);
}