diff --git a/src/quick/items/context2d/qquickcontext2d.cpp b/src/quick/items/context2d/qquickcontext2d.cpp index abc644fe2fae0a644f57b876267a18f8abde3e4f..11bc8ea4b85ce3507b3b0135d130cb8b19261793 100644 --- a/src/quick/items/context2d/qquickcontext2d.cpp +++ b/src/quick/items/context2d/qquickcontext2d.cpp @@ -232,7 +232,7 @@ class QV8Context2DResource : public QV8ObjectResource { V8_RESOURCE_TYPE(Context2DType) public: - QV8Context2DResource(QV8Engine *e) : QV8ObjectResource(e) {} + QV8Context2DResource(QV8Engine *e) : QV8ObjectResource(e), context(0) {} QQuickContext2D* context; };