DilloHtml
RAII members RAII use implicit cleanup.
This commit is contained in:
@ -562,15 +562,6 @@ DilloHtml::~DilloHtml()
|
||||
a_Html_form_delete (forms.at(i));
|
||||
forms.clear();
|
||||
|
||||
inputs_outside_form.clear();
|
||||
|
||||
for (auto &link: links)
|
||||
// TODO: `DilloUrl` has to become RAII...
|
||||
// TODO: In the interim, a `std::unique_ptr` deleter might
|
||||
// be a good choice.
|
||||
delete link.release(); // Once I have RAII correct on `DilloUrl`, I can make this not insane.
|
||||
links.clear();
|
||||
|
||||
for (int i = 0; i < images->size(); i++) {
|
||||
DilloHtmlImage *img = images->get(i);
|
||||
delete img->url;
|
||||
|
Reference in New Issue
Block a user