From: Zeno Albisser Date: Fri, 2 Sep 2011 09:04:31 +0000 (+0200) Subject: properly initialize the dptr of QSGCanvas in the default constructor X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=99ac54dea65d9dfc908ec3615e70d325a6ea8aff;p=konrad%2Fqtdeclarative.git properly initialize the dptr of QSGCanvas in the default constructor Change-Id: Ibefa8fe0ca73674e817b87782821a26a316e8042 Reviewed-on: http://codereview.qt.nokia.com/4124 Reviewed-by: Qt Sanity Bot Reviewed-by: Gunnar Sletta --- diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp index 96af2a5..6339683 100644 --- a/src/declarative/items/qsgcanvas.cpp +++ b/src/declarative/items/qsgcanvas.cpp @@ -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);