Qt: Fix Display object leak when closing a window

This commit is contained in:
Jeffrey Pfau 2015-04-04 14:14:28 -07:00
parent 473b805a00
commit e9365cdda2
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
Bugfixes:
- GBA: Fix timers not updating timing when writing to only the reload register
- All: Fix sanitize-deb script not cleaning up after itself
- Qt: Fix Display object leak when closing a window
0.2.0: (2015-04-03)
Features:

View File

@ -69,7 +69,7 @@ Window::Window(ConfigController* config, int playerId, QWidget* parent)
QGLFormat format(QGLFormat(QGL::Rgba | QGL::DoubleBuffer));
format.setSwapInterval(1);
m_display = new DisplayGL(format);
m_display = new DisplayGL(format, this);
m_logo.setDevicePixelRatio(m_screenWidget->devicePixelRatio());
m_logo = m_logo; // Free memory left over in old pixmap