https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8468ad5cf4c14c36729bb…
commit 8468ad5cf4c14c36729bb5a63ad2976f6ff32cbb
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun May 20 20:35:56 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Mon Oct 8 21:16:58 2018 +0200
[SYSSETUP] Delete the created fonts when needed.
---
dll/win32/syssetup/wizard.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dll/win32/syssetup/wizard.c b/dll/win32/syssetup/wizard.c
index aa26296af0..2eafef7874 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");
}