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:
parent
856d656d66
commit
ecf1b56c5f
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user