Author: cwittich
Date: Fri Sep 4 09:39:08 2015
New Revision: 68987
URL:
http://svn.reactos.org/svn/reactos?rev=68987&view=rev
Log:
[WIN32SS] fix memory leak in error case CID 716637
Modified:
trunk/reactos/win32ss/gdi/ntgdi/polyfill.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/polyfill.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/polyfill…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/polyfill.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/polyfill.c [iso-8859-1] Fri Sep 4 09:39:08 2015
@@ -616,7 +616,10 @@
//DEBUG_PRINT_ACTIVE_EDGELIST(ActiveHead);
if (!ActiveHead)
+ {
+ POLYGONFILL_DestroyEdgeList(list);
return FALSE;
+ }
pLeft = ActiveHead;
pRight = pLeft->pNext;