diff --git a/src/app/browser/header.cpp b/src/app/browser/header.cpp index 0c9f75f0..15e5ffdf 100644 --- a/src/app/browser/header.cpp +++ b/src/app/browser/header.cpp @@ -28,19 +28,6 @@ Header::Header() Header::~Header() { - // Menu - remove( - * menu - ); - delete menu; - menu = nullptr; - - // Tab - remove( - * tab - ); - delete tab; - tab = nullptr; } \ No newline at end of file diff --git a/src/app/browser/main.cpp b/src/app/browser/main.cpp index 06b0b7f7..4d4c5884 100644 --- a/src/app/browser/main.cpp +++ b/src/app/browser/main.cpp @@ -24,13 +24,7 @@ Main::Main() Main::~Main() { - remove( - * tab - ); - delete tab; - - tab = nullptr; } void Main::tab_append() diff --git a/src/app/browser/main/tab/page/navbar.cpp b/src/app/browser/main/tab/page/navbar.cpp index 9d10f56b..5c60a0f9 100644 --- a/src/app/browser/main/tab/page/navbar.cpp +++ b/src/app/browser/main/tab/page/navbar.cpp @@ -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() diff --git a/src/app/browser/main/tab/page/navbar/history.cpp b/src/app/browser/main/tab/page/navbar/history.cpp index fc0e1611..6c90566e 100644 --- a/src/app/browser/main/tab/page/navbar/history.cpp +++ b/src/app/browser/main/tab/page/navbar/history.cpp @@ -23,4 +23,8 @@ History::History() ); } -History::~History() = default; +History::~History() +{ + delete back; + delete forward; +};