diff --git a/src/document/libdom/doc.c b/src/document/libdom/doc.c index 1c36d9add..b020bf5e7 100644 --- a/src/document/libdom/doc.c +++ b/src/document/libdom/doc.c @@ -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); } diff --git a/src/ecmascript/quickjs/url.c b/src/ecmascript/quickjs/url.c index 1b2a981be..63c8769ad 100644 --- a/src/ecmascript/quickjs/url.c +++ b/src/ecmascript/quickjs/url.c @@ -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);