mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[SYSSETUP] Delete the created fonts when needed.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user