Skip to content

Commit

Permalink
Merge pull request #285 from kelleyk/upstream-patchqueue
Browse files Browse the repository at this point in the history
Plug XserverRegion leak.
  • Loading branch information
richardgv committed Aug 23, 2015
2 parents b1889c1 + 0e0b35a commit 10517b2
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 10517b2

Please sign in to comment.