mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +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)
|
if (pSetupData->hUnattendedInf != INVALID_HANDLE_VALUE)
|
||||||
SetupCloseInfFile(pSetupData->hUnattendedInf);
|
SetupCloseInfFile(pSetupData->hUnattendedInf);
|
||||||
|
|
||||||
|
@ -2666,11 +2669,7 @@ done:
|
||||||
FreeLibrary(hNetShell);
|
FreeLibrary(hNetShell);
|
||||||
|
|
||||||
if (pSetupData != NULL)
|
if (pSetupData != NULL)
|
||||||
{
|
|
||||||
DeleteObject(pSetupData->hBoldFont);
|
|
||||||
DeleteObject(pSetupData->hTitleFont);
|
|
||||||
HeapFree(GetProcessHeap(), 0, pSetupData);
|
HeapFree(GetProcessHeap(), 0, pSetupData);
|
||||||
}
|
|
||||||
|
|
||||||
LogItem(L"END_SECTION", L"InstallWizard");
|
LogItem(L"END_SECTION", L"InstallWizard");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue