composite: Fix memory leak in compCopyWindow
authorPeter Harris <pharris@opentext.com>
Thu, 17 Apr 2014 00:24:34 +0000 (20:24 -0400)
committerKeith Packard <keithp@keithp.com>
Tue, 22 Apr 2014 03:56:48 +0000 (20:56 -0700)
Signed-off-by: Peter Harris <pharris@opentext.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
composite/compwindow.c

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