update destructors

This commit is contained in:
yggverse 2024-08-17 16:05:48 +03:00
parent b9311eafb4
commit aa35a91923
4 changed files with 13 additions and 21 deletions

View File

@ -28,19 +28,6 @@ Header::Header()
Header::~Header()
{
// Menu
remove(
* menu
);
delete menu;
menu = nullptr;
// Tab
remove(
* tab
);
delete tab;
tab = nullptr;
}

View File

@ -24,13 +24,7 @@ Main::Main()
Main::~Main()
{
remove(
* tab
);
delete tab;
tab = nullptr;
}
void Main::tab_append()

View File

@ -83,7 +83,14 @@ Navbar::Navbar()
);
}
Navbar::~Navbar() = default;
Navbar::~Navbar()
{
delete base;
delete bookmark;
delete history;
delete request;
delete update;
};
// Actions
void Navbar::refresh()

View File

@ -23,4 +23,8 @@ History::History()
);
}
History::~History() = default;
History::~History()
{
delete back;
delete forward;
};