diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2022-10-01 12:46:24 -0600 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-25 07:58:58 -0700 |
commit | 2ff37d7e1342c1f4da41eb5b25ddc9e78aa24df2 (patch) | |
tree | 57bc5c1f03c3a886ddd952943d69afbdaabb3d38 /Ladybird/Settings.cpp | |
parent | f9af2832c80c9f0239c719c3a3882b1e4bc75bcb (diff) | |
download | serenity-2ff37d7e1342c1f4da41eb5b25ddc9e78aa24df2.zip |
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>
Diffstat (limited to 'Ladybird/Settings.cpp')
-rw-r--r-- | Ladybird/Settings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ladybird/Settings.cpp b/Ladybird/Settings.cpp index 86e01923ea..3e4e0fef3e 100644 --- a/Ladybird/Settings.cpp +++ b/Ladybird/Settings.cpp @@ -8,9 +8,9 @@ namespace Browser { -Settings::Settings() +Settings::Settings(QObject* parent) { - m_qsettings = new QSettings("Serenity", "Ladybird"); + m_qsettings = new QSettings("Serenity", "Ladybird", parent); } QString Settings::homepage() |