Commit in reactos/subsys/win32k/objects on MAIN
region.c+3-31.62 -> 1.63
don't leak resources

reactos/subsys/win32k/objects
region.c 1.62 -> 1.63
diff -u -r1.62 -r1.63
--- region.c	14 Jul 2004 20:48:58 -0000	1.62
+++ region.c	11 Dec 2004 22:39:38 -0000	1.63
@@ -113,7 +113,7 @@
  * the y-x-banding that's so nice to have...
  */
 
-/* $Id: region.c,v 1.62 2004/07/14 20:48:58 navaraf Exp $ */
+/* $Id: region.c,v 1.63 2004/12/11 22:39:38 weiden Exp $ */
 #include <w32k.h>
 #include <win32k/float.h>
 
@@ -3130,7 +3130,7 @@
                     tmpPtBlock = ExAllocatePoolWithTag( PagedPool, sizeof(POINTBLOCK), TAG_REGION);
 		    if(!tmpPtBlock) {
 		        DPRINT1("Can't alloc tPB\n");
-		        /* FIXME - free memory */
+			ExFreePool(pETEs);
 			return 0;
 		    }
                     curPtBlock->next = tmpPtBlock;
@@ -3182,7 +3182,7 @@
 					       sizeof(POINTBLOCK), TAG_REGION );
 			if(!tmpPtBlock) {
 			    DPRINT1("Can't alloc tPB\n");
-			    /* FIXME - free resources */
+			    ExFreePool(pETEs);
 			    NtGdiDeleteObject( hrgn );
 			    return 0;
 			}
CVSspam 0.2.8