Qt: Fix Display object leak when closing a window
Jeffrey Pfau jeffrey@endrift.com
Sat, 04 Apr 2015 14:14:28 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -69,7 +69,7 @@ m_controller->setOverrides(m_config->overrides());
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