composite: Fix memory leak in compCopyWindow

Signed-off-by: Peter Harris <pharris@opentext.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Peter Harris 2014-04-16 20:24:34 -04:00 committed by Keith Packard
parent 935ea0d7b5
commit 8edeac202e

View File

@ -525,6 +525,7 @@ compCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
}
FreeScratchGC(pGC);
}
RegionUninit(&rgnDst);
return;
}
dx = pPixmap->screen_x - cw->oldx;