From 0e0b35a361ef47d008dcb993bf6d8e10ca384bd1 Mon Sep 17 00:00:00 2001 From: Kevin Kelley Date: Tue, 12 May 2015 13:14:39 -0700 Subject: [PATCH] Plug XserverRegion leak. --- src/compton.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compton.c b/src/compton.c index 38e25ce..19de07a 100644 --- a/src/compton.c +++ b/src/compton.c @@ -2106,7 +2106,10 @@ repair_win(session_t *ps, win *w) { // Why care about damage when screen is unredirected? // We will force full-screen repaint on redirection. - if (!ps->redirected) return; + if (!ps->redirected) { + free_region(ps, &parts); + return; + } // Remove the part in the damage area that could be ignored if (!ps->reg_ignore_expire && w->prev_trans && w->prev_trans->reg_ignore)