textmode: Actually disable term hooking on non-managed initialisation

This commit is contained in:
mintsuki 2023-04-13 18:49:26 +02:00
parent 616ee9cf21
commit cbc7e5a860
1 changed files with 9 additions and 1 deletions

View File

@ -354,7 +354,15 @@ void vga_textmode_init(bool managed) {
term->full_refresh(term);
term_backend = TEXTMODE;
if (!managed) {
term->deinit(term, pmm_free);
pmm_free(terms, sizeof(void *));
terms_i = 0;
terms = NULL;
term_backend = _NOT_READY;
} else {
term_backend = TEXTMODE;
}
}
#endif