[ROSAPPS][VGAFONTEDIT] Fix memory leaks

This commit is contained in:
Katayama Hirofumi MZ 2018-12-20 23:16:04 +09:00
parent b460183366
commit 0a723a2c75

View file

@ -222,6 +222,10 @@ DoFileOpen(IN PMAIN_WND_INFO Info)
OpenInfo->bCreateNew = FALSE;
CreateFontWindow(Info, OpenInfo);
}
else
{
HeapFree(hProcessHeap, 0, OpenInfo->pszFileName);
}
}
else
{
@ -246,6 +250,7 @@ MainWndOpenFile(IN PMAIN_WND_INFO Info, LPCWSTR File)
else
{
MessageBoxW(Info->hMainWnd, L"Pathname is too long!", NULL, MB_ICONERROR);
HeapFree(hProcessHeap, 0, OpenInfo->pszFileName);
}
}
else