Skip to content

Commit

Permalink
Plug XserverRegion leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
kelleyk committed May 12, 2015
1 parent b1889c1 commit 0e0b35a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0e0b35a

Please sign in to comment.