From: Hermès Bélusca-Maïto Date: Sun, 20 May 2018 18:35:56 +0000 (+0200) Subject: [SYSSETUP] Delete the created fonts when needed. X-Git-Tag: 0.4.12-dev~568 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=8468ad5cf4c14c36729bb5a63ad2976f6ff32cbb [SYSSETUP] Delete the created fonts when needed. --- diff --git a/dll/win32/syssetup/wizard.c b/dll/win32/syssetup/wizard.c index aa26296af0b..2eafef78745 100644 --- a/dll/win32/syssetup/wizard.c +++ b/dll/win32/syssetup/wizard.c @@ -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"); }