Author: gschneider
Date: Mon Aug 24 01:51:09 2009
New Revision: 42898
URL:
http://svn.reactos.org/svn/reactos?rev=42898&view=rev
Log:
GetCharacterPlacementA: Free memory on error
Modified:
trunk/reactos/dll/win32/gdi32/objects/font.c
Modified: trunk/reactos/dll/win32/gdi32/objects/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/fo…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/font.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/font.c [iso-8859-1] Mon Aug 24 01:51:09 2009
@@ -328,6 +328,7 @@
resultsW.lpOutString = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR)*uCountW);
if (resultsW.lpOutString == NULL)
{
+ HeapFree(GetProcessHeap(), 0, lpStringW);
return 0;
}
}