mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04: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 */
|
/* This is the only path I expect */
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
break;
|
||||||
//NSLOG(netsurf, INFO, "User data operation not handled.");
|
//NSLOG(netsurf, INFO, "User data operation not handled.");
|
||||||
//assert(0);
|
//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);
|
struct eljs_url *url = (struct eljs_url *)JS_GetOpaque(val, js_url_class_id);
|
||||||
|
|
||||||
if (url) {
|
if (url) {
|
||||||
|
char *uristring = url->uri.string;
|
||||||
done_uri(&url->uri);
|
done_uri(&url->uri);
|
||||||
|
mem_free_if(uristring);
|
||||||
mem_free_if(url->hash);
|
mem_free_if(url->hash);
|
||||||
mem_free_if(url->host);
|
mem_free_if(url->host);
|
||||||
mem_free_if(url->pathname);
|
mem_free_if(url->pathname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user