From 99ac54dea65d9dfc908ec3615e70d325a6ea8aff Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Fri, 2 Sep 2011 11:04:31 +0200 Subject: [PATCH] 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 --- src/declarative/items/qsgcanvas.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); -- 1.7.2.5