mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcConsoleLib: Fix memory leak and improve debug
This commit is contained in:
parent
9bbae45f21
commit
044c399748
@ -702,6 +702,7 @@ SetConsoleResolution (
|
||||
);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_INFO, "OCC: Mode %u failure - %r\n", ModeIndex, Status));
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -723,6 +724,7 @@ SetConsoleResolution (
|
||||
|| Info->PixelFormat == PixelBlueGreenRedReserved8BitPerColor)
|
||||
&& (Bpp == 0 || Bpp == 24 || Bpp == 32)) {
|
||||
ModeNumber = ModeIndex;
|
||||
FreePool (Info);
|
||||
break;
|
||||
}
|
||||
} else if (Info->HorizontalResolution > Width
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user