1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[quickjs] Free uri string

This commit is contained in:
Witold Filipczyk 2024-07-16 21:31:46 +02:00
parent 856d656d66
commit ecf1b56c5f
2 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,7 @@ js_html_document_user_data_handler(dom_node_operation operation,
/* This is the only path I expect */
break;
default:
break;
//NSLOG(netsurf, INFO, "User data operation not handled.");
//assert(0);
}

View File

@ -71,7 +71,9 @@ void js_url_finalizer(JSRuntime *rt, JSValue val)
struct eljs_url *url = (struct eljs_url *)JS_GetOpaque(val, js_url_class_id);
if (url) {
char *uristring = url->uri.string;
done_uri(&url->uri);
mem_free_if(uristring);
mem_free_if(url->hash);
mem_free_if(url->host);
mem_free_if(url->pathname);