mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
win: free window resource
It's fine to call free_win_res in the new backends too. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
838a214749
commit
b32ae5a32c
1 changed files with 1 additions and 3 deletions
|
@ -1458,9 +1458,7 @@ static void finish_destroy_win(session_t *ps, win **_w) {
|
|||
ps->active_win = NULL;
|
||||
}
|
||||
|
||||
if (!ps->o.experimental_backends) {
|
||||
free_win_res(ps, w);
|
||||
}
|
||||
free_win_res(ps, w);
|
||||
|
||||
// Drop w from all prev_trans to avoid accessing freed memory in
|
||||
// repair_win()
|
||||
|
|
Loading…
Reference in a new issue