diff --git a/src/form.cc b/src/form.cc index 13e2b0b..912534d 100644 --- a/src/form.cc +++ b/src/form.cc @@ -351,7 +351,7 @@ static std::shared_ptr< DilloHtmlInput > Html_get_current_input(DilloHtml &html) */ void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize) { - DilloUrl *action; + std::unique_ptr< DilloUrl > action; DilloHtmlMethod method; DilloHtmlEnc content_type; char *first; @@ -378,11 +378,11 @@ 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).release(); + action = a_Html_url_new(html, attrbuf, NULL, 0); else { if (html->DocType != DT_HTML || html->DocTypeVersion <= 4.01f) BUG_MSG("