mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Ladybird/Everywhere: Ensure that Qt objects are created with parents
This prevents memory leaks detected by both Valgrind and ASAN/LSAN. Valgrind is still suspicious of the leaked JS::VM from Web::Bindings::main_thread_vm() but there's other issues with leak checking all the GC'd objects. Co-Authored-By: Diego Iastrubni <diegoiast@gmail.com>
This commit is contained in:
parent
f9af2832c8
commit
2ff37d7e13
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/ADKaster
Commit: 2ff37d7e13
Pull-request: https://github.com/SerenityOS/serenity/pull/16583
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/linusg
7 changed files with 41 additions and 41 deletions
|
@ -19,15 +19,16 @@ extern String s_serenity_resource_root;
|
|||
extern Browser::Settings* s_settings;
|
||||
|
||||
Tab::Tab(BrowserWindow* window)
|
||||
: m_window(window)
|
||||
: QWidget(window)
|
||||
, m_window(window)
|
||||
{
|
||||
m_layout = new QBoxLayout(QBoxLayout::Direction::TopToBottom, this);
|
||||
m_layout->setSpacing(0);
|
||||
m_layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
m_view = new SimpleWebView;
|
||||
m_toolbar = new QToolBar;
|
||||
m_location_edit = new QLineEdit;
|
||||
m_toolbar = new QToolBar(this);
|
||||
m_location_edit = new QLineEdit(this);
|
||||
|
||||
m_hover_label = new QLabel(this);
|
||||
m_hover_label->hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue