DilloURL has a dtor.
It is the same as the original free function. But this will let me put some ownership on various members and slowly start to C++ify this core type.
This commit is contained in:
@ -397,7 +397,7 @@ void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize)
|
||||
charset = html->charset;
|
||||
html->formNew(method, action, content_type, charset.has_value() ? charset.value().c_str() : nullptr );
|
||||
dFree(first);
|
||||
a_Url_free(action);
|
||||
delete action;
|
||||
}
|
||||
|
||||
void Html_tag_close_form(DilloHtml *html)
|
||||
@ -620,7 +620,7 @@ void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize)
|
||||
|
||||
HT2TB(html)->addWidget (embed, html->backgroundStyle ());
|
||||
|
||||
a_Url_free(action);
|
||||
delete action;
|
||||
html->InFlags &= ~IN_FORM;
|
||||
}
|
||||
|
||||
@ -1011,7 +1011,7 @@ DilloHtmlForm::DilloHtmlForm (DilloHtml *html2,
|
||||
*/
|
||||
DilloHtmlForm::~DilloHtmlForm ()
|
||||
{
|
||||
a_Url_free(action);
|
||||
delete action;
|
||||
dFree(submit_charset);
|
||||
inputs.clear();
|
||||
if (form_receiver)
|
||||
@ -1062,7 +1062,7 @@ void DilloHtmlForm::submit(DilloHtmlInput *active_input, EventButton *event)
|
||||
} else {
|
||||
a_UIcmd_open_url(html->bw, url);
|
||||
}
|
||||
a_Url_free(url);
|
||||
delete url;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user