mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-12 19:30:44 +01:00
fix delete fonts
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
697cc5e4b9
commit
07f5c88a8f
@ -630,18 +630,21 @@ static VOID StartLoader(IN LOADER_ENTRY *Entry)
|
|||||||
// OSIcons
|
// OSIcons
|
||||||
NSVGfontChain *fontChain = fontsDB;
|
NSVGfontChain *fontChain = fontsDB;
|
||||||
while (fontChain) {
|
while (fontChain) {
|
||||||
|
DBG("free fontChain \n");
|
||||||
font = fontChain->font;
|
font = fontChain->font;
|
||||||
|
NSVGfontChain *nextChain = fontChain->next;
|
||||||
if (font) {
|
if (font) {
|
||||||
nsvg__deleteFont(font);
|
nsvg__deleteFont(font);
|
||||||
fontChain->font = NULL;
|
fontChain->font = NULL;
|
||||||
}
|
}
|
||||||
fontChain = fontChain->next;
|
FreePool(fontChain);
|
||||||
|
fontChain = nextChain->next;
|
||||||
}
|
}
|
||||||
// nsvg__deleteParser(mainParser); //temporary disabled
|
// nsvg__deleteParser(mainParser); //temporary disabled
|
||||||
//destruct_globals_objects(NULL); //we can't destruct our globals here. We need, for example, Volumes.
|
//destruct_globals_objects(NULL); //we can't destruct our globals here. We need, for example, Volumes.
|
||||||
|
|
||||||
//DumpKernelAndKextPatches(Entry->KernelAndKextPatches);
|
//DumpKernelAndKextPatches(Entry->KernelAndKextPatches);
|
||||||
|
DBG("start loader\n");
|
||||||
// Load image into memory (will be started later)
|
// Load image into memory (will be started later)
|
||||||
Status = LoadEFIImage(Entry->DevicePath, Basename(Entry->LoaderPath), NULL, &ImageHandle);
|
Status = LoadEFIImage(Entry->DevicePath, Basename(Entry->LoaderPath), NULL, &ImageHandle);
|
||||||
if (EFI_ERROR(Status)) {
|
if (EFI_ERROR(Status)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user