fixed memory leak

svn path=/trunk/; revision=9437
This commit is contained in:
Thomas Bluemel 2004-05-18 14:06:42 +00:00
parent 7ea71b67f4
commit 40c3c7cd37

View file

@ -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 <w32k.h>
#include <win32k/float.h>
@ -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;
}