Plumb the ownership up a bit.

The HTML function returning a DilloUrl now returns
ownership.  More releases scattered, but we can clean those
up in time.
This commit is contained in:
2025-04-13 15:40:46 -04:00
parent 61c879c218
commit 76bae93e1c
4 changed files with 31 additions and 39 deletions

View File

@ -373,7 +373,7 @@ void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize)
}
}
if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "action")))
action = a_Html_url_new(html, attrbuf, NULL, 0);
action = a_Html_url_new(html, attrbuf, NULL, 0).release();
else {
if (html->DocType != DT_HTML || html->DocTypeVersion <= 4.01f)
BUG_MSG("<form> requires action attribute.");
@ -607,7 +607,7 @@ void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize)
}
if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "action")))
action = a_Html_url_new(html, attrbuf, NULL, 0);
action = a_Html_url_new(html, attrbuf, NULL, 0).release();
else
action = a_Url_dup(*html->base_url).release();