From 40c3c7cd37298e058f9bd94a08201b099503ae30 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Tue, 18 May 2004 14:06:42 +0000 Subject: [PATCH] fixed memory leak svn path=/trunk/; revision=9437 --- reactos/subsys/win32k/objects/region.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/objects/region.c b/reactos/subsys/win32k/objects/region.c index 649ef0c052a..dd4b5bb9ac7 100644 --- a/reactos/subsys/win32k/objects/region.c +++ b/reactos/subsys/win32k/objects/region.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: region.c,v 1.54 2004/05/18 13:57:41 weiden Exp $ */ +/* $Id: region.c,v 1.55 2004/05/18 14:06:42 weiden Exp $ */ #include #include @@ -1835,6 +1835,7 @@ NtGdiCreatePolyPolygonRgn(CONST PPOINT pt, /* copy points */ if (!(Safept = ExAllocatePool(PagedPool, nPoints * sizeof(POINT)))) { + ExFreePool(SafePolyCounts); SetLastWin32Error(ERROR_NOT_ENOUGH_MEMORY); return (HRGN)0; }