fosphor/gl: Fix memory leak when releasing color map

Thanks to Emil Berg for reporting

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2019-12-04 00:18:54 +01:00
parent 306f197108
commit 0b8390e1c2
1 changed files with 3 additions and 0 deletions

View File

@ -217,6 +217,9 @@ fosphor_gl_cmap_release(struct fosphor_gl_cmap_ctx *cmap_ctx)
gl_cmap_release_shader(&cmap_ctx->shaders[GL_CMAP_SHADER_SIMPLE]);
gl_cmap_release_shader(&cmap_ctx->shaders[GL_CMAP_SHADER_BICUBIC]);
gl_cmap_release_shader(&cmap_ctx->shaders[GL_CMAP_SHADER_FALLBACK]);
/* Release container */
free(cmap_ctx);
}