Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.9
-
None
-
Ubuntu
-
-
c337cdf39 (dev), 52c9346f5 (6.8)
Description
~QOpenGLWindowPrivate accesses QOpenGLWindow,
but the latter has already been destroyed when this
happens.
Detected by -sanitize undefined for this application:
#include <QApplication>
#include <QOpenGLWindow>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QOpenGLWindow *window = new QOpenGLWindow();
delete window;
return app.exec();
{color:#3b3b3b}}
Attachments
For Gerrit Dashboard: QTBUG-126845 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
573896,3 | Move destruction logic to QOpenGLWindow from Private | dev | qt/qtbase | Status: MERGED | +2 | 0 |
574448,2 | Move destruction logic to QOpenGLWindow from Private | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |