mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
fixed memory leak
svn path=/trunk/; revision=9437
This commit is contained in:
parent
7ea71b67f4
commit
40c3c7cd37
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue