Skip to content
Permalink
Browse files

DolphinQt/Mapping: Explicitly specify parents of conditionally added …

…widgets to prevent memory leaks.
  • Loading branch information
jordan-woyak committed Oct 18, 2019
1 parent fa8cbd8 commit 40d15980c5b90c96bf5a433a9861b03791a96581
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp
@@ -229,8 +229,8 @@ void IOWindow::CreateMainLayout()
m_devices_combo = new QComboBox();
m_option_list = new QTableWidget();
m_select_button = new QPushButton(tr("Select"));
m_detect_button = new QPushButton(tr("Detect"));
m_test_button = new QPushButton(tr("Test"));
m_detect_button = new QPushButton(tr("Detect"), this);
m_test_button = new QPushButton(tr("Test"), this);
m_button_box = new QDialogButtonBox();
m_clear_button = new QPushButton(tr("Clear"));
m_apply_button = new QPushButton(tr("Apply"));
@@ -265,7 +265,7 @@ void IOWindow::CreateMainLayout()
m_operators_combo->addItem(tr(", Comma"));
}

m_functions_combo = new QComboBox();
m_functions_combo = new QComboBox(this);
m_functions_combo->addItem(tr("Functions"));
m_functions_combo->insertSeparator(1);
m_functions_combo->addItem(QStringLiteral("if"));

0 comments on commit 40d1598

Please sign in to comment.
You can’t perform that action at this time.