1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[frames] Do not free doc_view, when toggle html -> plain

I know it is not correct, but at least does not crash.
This commit is contained in:
Witold Filipczyk 2023-10-15 16:06:53 +02:00
parent ddbc49b6b3
commit 9504926c6b

View File

@ -534,6 +534,7 @@ render_document_frames(struct session *ses, int no_cache)
struct document_view *prev_doc_view = doc_view->prev;
if (doc_view->used) continue;
if (vs && vs->plain) continue;
detach_formatted(doc_view);
del_from_list(doc_view);