Fix memory leak

svn path=/trunk/; revision=54778
This commit is contained in:
Pierre Schweitzer 2011-12-29 13:20:18 +00:00
parent 2ec1edae97
commit 324daff6b4

View file

@ -207,7 +207,10 @@ GetProfiles(HWND hwndDlg)
return FALSE;
if (!GetProfileCount(&pProfileData->dwProfileCount))
{
HeapFree(pProfileData, 0, GetProcessHeap());
return FALSE;
}
pProfileData->pProfiles = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
pProfileData->dwProfileCount * sizeof(PROFILE));