properly initialize the dptr of QSGCanvas in the default constructor
authorZeno Albisser <zeno.albisser@nokia.com>
Fri, 2 Sep 2011 09:04:31 +0000 (11:04 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Fri, 2 Sep 2011 10:13:10 +0000 (12:13 +0200)
Change-Id: Ibefa8fe0ca73674e817b87782821a26a316e8042
Reviewed-on: http://codereview.qt.nokia.com/4124
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>

src/declarative/items/qsgcanvas.cpp

index 96af2a5..6339683 100644 (file)
@@ -775,7 +775,7 @@ void QSGCanvasPrivate::cleanup(QSGNode *n)
 
 
 QSGCanvas::QSGCanvas(QWindow *parent)
-    : QWindow(parent)
+    : QWindow(*(new QSGCanvasPrivate), parent)
 {
     Q_D(QSGCanvas);
     d->init(this);