mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[ROSAPPS][VGAFONTEDIT] Fix memory leaks
This commit is contained in:
parent
b460183366
commit
0a723a2c75
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue