1
0
Fork 0
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:
Yuxuan Shui 2019-03-17 01:06:58 +00:00
parent 838a214749
commit b32ae5a32c
No known key found for this signature in database
GPG key ID: 37C999F617EA1A47

View file

@ -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);
}
// Drop w from all prev_trans to avoid accessing freed memory in
// repair_win()