diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-07-27 13:53:14 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-07-30 22:54:14 +0100 |
commit | 06608c1bf0b1046520e184fdc063c83ead2184af (patch) | |
tree | 127f0eab57b29a81edb130c464256913ba433c4a /render/html.c | |
parent | 4f0e70b50d2446ed3ba14bd51d61c80088226d91 (diff) | |
download | netsurf-06608c1bf0b1046520e184fdc063c83ead2184af.tar.gz netsurf-06608c1bf0b1046520e184fdc063c83ead2184af.tar.bz2 |
extend script enumeration to include asyncronous and deferred scripts
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/render/html.c b/render/html.c index 759c24433..236752942 100644 --- a/render/html.c +++ b/render/html.c @@ -2433,21 +2433,7 @@ static void html_destroy(struct content *c) } /* Free scripts */ - for (i = 0; i != html->scripts_count; i++) { - if (html->scripts[i].mimetype != NULL) { - dom_string_unref(html->scripts[i].mimetype); - } - if (html->scripts[i].type == HTML_SCRIPT_EXTERNAL && - html->scripts[i].data.external != NULL) { - hlcache_handle_release( - html->scripts[i].data.external); - } else if (html->scripts[i].type == - HTML_SCRIPT_INTERNAL && - html->scripts[i].data.internal != NULL) { - dom_string_unref(html->scripts[i].data.internal); - } - } - free(html->scripts); + html_free_scripts(html); /* Free objects */ html_destroy_objects(html); |