DilloHtml RAII members RAII use implicit cleanup.

This commit is contained in:
2025-08-01 01:37:23 -04:00
parent 252c91e6c1
commit b82eab34cf

View File

@ -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;