mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[document] delele sixel images when document done
This commit is contained in:
parent
5ecf02da29
commit
715c16f4d1
@ -78,6 +78,7 @@
|
||||
#include "network/dns.h"
|
||||
#include "protocol/uri.h"
|
||||
#include "terminal/draw.h"
|
||||
#include "terminal/sixel.h"
|
||||
#include "util/color.h"
|
||||
#include "util/error.h"
|
||||
#include "util/lists.h"
|
||||
@ -368,6 +369,12 @@ done_document(struct document *document)
|
||||
done_form((struct form *)document->forms.next);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_LIBSIXEL
|
||||
while (!list_empty(document->images)) {
|
||||
delete_image((struct image *)document->images.next);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CSS
|
||||
free_uri_list(&document->css_imports);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user