mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[SYSSETUP] Delete the created fonts when needed.
This commit is contained in:
parent
6267898583
commit
8468ad5cf4
1 changed files with 3 additions and 4 deletions
|
@ -2655,6 +2655,9 @@ InstallWizard(VOID)
|
|||
}
|
||||
}
|
||||
|
||||
DeleteObject(pSetupData->hBoldFont);
|
||||
DeleteObject(pSetupData->hTitleFont);
|
||||
|
||||
if (pSetupData->hUnattendedInf != INVALID_HANDLE_VALUE)
|
||||
SetupCloseInfFile(pSetupData->hUnattendedInf);
|
||||
|
||||
|
@ -2666,11 +2669,7 @@ done:
|
|||
FreeLibrary(hNetShell);
|
||||
|
||||
if (pSetupData != NULL)
|
||||
{
|
||||
DeleteObject(pSetupData->hBoldFont);
|
||||
DeleteObject(pSetupData->hTitleFont);
|
||||
HeapFree(GetProcessHeap(), 0, pSetupData);
|
||||
}
|
||||
|
||||
LogItem(L"END_SECTION", L"InstallWizard");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue