GetCharacterPlacementA: Free memory on error

svn path=/trunk/; revision=42898
This commit is contained in:
Gregor Schneider 2009-08-23 23:51:09 +00:00
parent aa38bf2535
commit eda170fe74

View file

@ -328,6 +328,7 @@ GetCharacterPlacementA(
resultsW.lpOutString = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR)*uCountW);
if (resultsW.lpOutString == NULL)
{
HeapFree(GetProcessHeap(), 0, lpStringW);
return 0;
}
}