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:
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user