mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
update destructors
This commit is contained in:
parent
b9311eafb4
commit
aa35a91923
@ -28,19 +28,6 @@ Header::Header()
|
||||
|
||||
Header::~Header()
|
||||
{
|
||||
// Menu
|
||||
remove(
|
||||
* menu
|
||||
);
|
||||
|
||||
delete menu;
|
||||
menu = nullptr;
|
||||
|
||||
// Tab
|
||||
remove(
|
||||
* tab
|
||||
);
|
||||
|
||||
delete tab;
|
||||
tab = nullptr;
|
||||
}
|
@ -24,13 +24,7 @@ Main::Main()
|
||||
|
||||
Main::~Main()
|
||||
{
|
||||
remove(
|
||||
* tab
|
||||
);
|
||||
|
||||
delete tab;
|
||||
|
||||
tab = nullptr;
|
||||
}
|
||||
|
||||
void Main::tab_append()
|
||||
|
@ -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()
|
||||
|
@ -23,4 +23,8 @@ History::History()
|
||||
);
|
||||
}
|
||||
|
||||
History::~History() = default;
|
||||
History::~History()
|
||||
{
|
||||
delete back;
|
||||
delete forward;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user