Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0
-
b48fe3d53af1be7d8d7d0bdc5a2bb4aba7894fdf (qt/qtdeclarative/5.15)
Description
For QQuickView the QOpenGLContextGroup doesn't seem to be deleted always. For example in:
int main(int argc, char *argv[]) { QApplication a(argc, argv); QQuickView w; w.show(); int ret = a.exec(); int nCrtDbgFlag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG); nCrtDbgFlag |= _CRTDBG_LEAK_CHECK_DF; _CrtSetDbgFlag(nCrtDbgFlag); return ret; }
deleteLater would be called on QOpenGLContextGroup but it's after event loop has stopped.
Steps to reproduce the issue:
- Run the attached project
- Close the window