From b32ae5a32cdc2c771d81fab45a89b503c67b4098 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 17 Mar 2019 01:06:58 +0000 Subject: [PATCH] win: free window resource It's fine to call free_win_res in the new backends too. Signed-off-by: Yuxuan Shui --- src/win.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/win.c b/src/win.c index 43b451c..ae730d2 100644 --- a/src/win.c +++ b/src/win.c @@ -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()