Fix small memory leak in GraphicsContext

Release GraphicsHelperInterface instances on destruction.

Task-number: QTBUG-61293
Change-Id: I989aefb9102dd8772288d8a46cd47dbe3d16e8c0
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
This commit is contained in:
Mauro Persano 2017-06-08 19:48:15 -03:00
parent b2ae5770b5
commit eeb42c08c3
1 changed files with 2 additions and 0 deletions

View File

@ -403,6 +403,8 @@ void GraphicsContext::releaseOpenGL()
m_debugLogger->stopLogging();
m_debugLogger.reset(nullptr);
}
qDeleteAll(m_glHelpers);
}
// The OpenGLContext is not current on any surface at this point