Fix memory leak in glx_init_blur
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
b76a4234e5
commit
3f5a4d570c
|
@ -620,6 +620,8 @@ glx_init_blur(session_t *ps) {
|
|||
|
||||
if (!ppass->frag_shader) {
|
||||
log_error("Failed to create fragment shader %d.", i);
|
||||
free(extension);
|
||||
free(lc_numeric_old);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -627,6 +629,8 @@ glx_init_blur(session_t *ps) {
|
|||
ppass->prog = gl_create_program(&ppass->frag_shader, 1);
|
||||
if (!ppass->prog) {
|
||||
log_error("Failed to create GLSL program.");
|
||||
free(extension);
|
||||
free(lc_numeric_old);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue