Fix memory leak in glx_init_blur

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-01-31 22:47:04 +00:00
parent b76a4234e5
commit 3f5a4d570c
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}