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:
parent
306f197108
commit
0b8390e1c2
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue