Skip to content
Permalink
Browse files

Merge pull request #7715 from Techjar/qt-delete-unparented

Qt/MainWindow: Directly delete unparented dialogs
  • Loading branch information...
JMC47 committed Jan 28, 2019
2 parents 84794a6 + 47cc5b0 commit 79076331261303ed0e72b7b8295d16ac7345c085
Showing with 4 additions and 4 deletions.
  1. +4 −4 Source/Core/DolphinQt/MainWindow.cpp
@@ -244,13 +244,13 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters) : QMainW

MainWindow::~MainWindow()
{
m_render_widget->deleteLater();
m_netplay_dialog->deleteLater();
delete m_render_widget;
delete m_netplay_dialog;

for (int i = 0; i < 4; i++)
{
m_gc_tas_input_windows[i]->deleteLater();
m_wii_tas_input_windows[i]->deleteLater();
delete m_gc_tas_input_windows[i];
delete m_wii_tas_input_windows[i];
}

ShutdownControllers();

0 comments on commit 7907633

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