mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
don't leak resources
svn path=/trunk/; revision=12034
This commit is contained in:
parent
2e7cd83da3
commit
f6de8b04ac
1 changed files with 3 additions and 3 deletions
|
@ -113,7 +113,7 @@ SOFTWARE.
|
||||||
* the y-x-banding that's so nice to have...
|
* 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 <w32k.h>
|
||||||
#include <win32k/float.h>
|
#include <win32k/float.h>
|
||||||
|
|
||||||
|
@ -3130,7 +3130,7 @@ IntCreatePolyPolgonRgn(POINT *Pts,
|
||||||
tmpPtBlock = ExAllocatePoolWithTag( PagedPool, sizeof(POINTBLOCK), TAG_REGION);
|
tmpPtBlock = ExAllocatePoolWithTag( PagedPool, sizeof(POINTBLOCK), TAG_REGION);
|
||||||
if(!tmpPtBlock) {
|
if(!tmpPtBlock) {
|
||||||
DPRINT1("Can't alloc tPB\n");
|
DPRINT1("Can't alloc tPB\n");
|
||||||
/* FIXME - free memory */
|
ExFreePool(pETEs);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
curPtBlock->next = tmpPtBlock;
|
curPtBlock->next = tmpPtBlock;
|
||||||
|
@ -3182,7 +3182,7 @@ IntCreatePolyPolgonRgn(POINT *Pts,
|
||||||
sizeof(POINTBLOCK), TAG_REGION );
|
sizeof(POINTBLOCK), TAG_REGION );
|
||||||
if(!tmpPtBlock) {
|
if(!tmpPtBlock) {
|
||||||
DPRINT1("Can't alloc tPB\n");
|
DPRINT1("Can't alloc tPB\n");
|
||||||
/* FIXME - free resources */
|
ExFreePool(pETEs);
|
||||||
NtGdiDeleteObject( hrgn );
|
NtGdiDeleteObject( hrgn );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue