mirror of
https://github.com/reactos/reactos.git
synced 2025-05-13 14:20:31 +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;
|
OpenInfo->bCreateNew = FALSE;
|
||||||
CreateFontWindow(Info, OpenInfo);
|
CreateFontWindow(Info, OpenInfo);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
HeapFree(hProcessHeap, 0, OpenInfo->pszFileName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -246,6 +250,7 @@ MainWndOpenFile(IN PMAIN_WND_INFO Info, LPCWSTR File)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MessageBoxW(Info->hMainWnd, L"Pathname is too long!", NULL, MB_ICONERROR);
|
MessageBoxW(Info->hMainWnd, L"Pathname is too long!", NULL, MB_ICONERROR);
|
||||||
|
HeapFree(hProcessHeap, 0, OpenInfo->pszFileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue