mirror of https://github.com/yshui/picom.git
legacy backend: render: fix leak of fbconfig
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
685e5a9aac
commit
e3582cd996
|
@ -196,6 +196,9 @@ static inline void free_texture(session_t *ps, glx_texture_t **pptex) {
|
||||||
*/
|
*/
|
||||||
static inline void free_paint_glx(session_t *ps, paint_t *ppaint) {
|
static inline void free_paint_glx(session_t *ps, paint_t *ppaint) {
|
||||||
free_texture(ps, &ppaint->ptex);
|
free_texture(ps, &ppaint->ptex);
|
||||||
|
#ifdef CONFIG_OPENGL
|
||||||
|
free(ppaint->fbcfg);
|
||||||
|
#endif
|
||||||
ppaint->fbcfg = NULL;
|
ppaint->fbcfg = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,6 +210,5 @@ static inline void free_win_res_glx(session_t *ps, struct managed_win *w) {
|
||||||
free_paint_glx(ps, &w->shadow_paint);
|
free_paint_glx(ps, &w->shadow_paint);
|
||||||
#ifdef CONFIG_OPENGL
|
#ifdef CONFIG_OPENGL
|
||||||
free_glx_bc(ps, &w->glx_blur_cache);
|
free_glx_bc(ps, &w->glx_blur_cache);
|
||||||
free(w->paint.fbcfg);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue