term: Fix deinitialisation issues
This commit is contained in:
parent
26acbb8bd9
commit
48eaab4a42
@ -25,7 +25,9 @@ void term_deinit(void) {
|
||||
}
|
||||
|
||||
void term_vbe(size_t width, size_t height) {
|
||||
term_notready();
|
||||
if (term_backend != VBE) {
|
||||
term_deinit();
|
||||
}
|
||||
|
||||
if (quiet || allocations_disallowed) {
|
||||
return;
|
||||
@ -349,7 +351,7 @@ void term_reinit(void) {
|
||||
|
||||
#if bios == 1
|
||||
void term_textmode(void) {
|
||||
term_notready();
|
||||
term_deinit();
|
||||
|
||||
if (quiet || allocations_disallowed) {
|
||||
return;
|
||||
|
@ -594,6 +594,8 @@ failed_to_load_header_section:
|
||||
fb = &_fb;
|
||||
}
|
||||
|
||||
term_deinit();
|
||||
|
||||
if (hdrtag != NULL || (avtag != NULL && uefi) || (avtag != NULL && preference == 0)) {
|
||||
term_deinit();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user