[PATCH] composite: Fix memory leak in compCopyWindow

Peter Harris pharris at opentext.com
Wed Apr 16 17:24:34 PDT 2014


Signed-off-by: Peter Harris <pharris at opentext.com>
---
 composite/compwindow.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/composite/compwindow.c b/composite/compwindow.c
index 8824294..9a6b2da 100644
--- a/composite/compwindow.c
+++ b/composite/compwindow.c
@@ -525,6 +525,7 @@ compCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
                 }
                 FreeScratchGC(pGC);
             }
+            RegionUninit(&rgnDst);
             return;
         }
         dx = pPixmap->screen_x - cw->oldx;
-- 
1.9.1



More information about the xorg-devel mailing list