[SYSSETUP] Delete the created fonts when needed.

This commit is contained in:
Hermès Bélusca-Maïto 2018-05-20 20:35:56 +02:00
parent 6267898583
commit 8468ad5cf4
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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");
}