diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-11 01:36:57 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-11 01:36:57 (GMT) |
commit | 738fe5730a55279bf3c033bad7317768d81f40af (patch) | |
tree | 1b1c8df3ed26aa338008df672529d0aa228c93a0 /src/declarative/qml/qmlparserstatus.cpp | |
parent | ac19c9a30a47bfe8b374d390525b06ebdb26b4ca (diff) | |
download | Qt-738fe5730a55279bf3c033bad7317768d81f40af.zip Qt-738fe5730a55279bf3c033bad7317768d81f40af.tar.gz Qt-738fe5730a55279bf3c033bad7317768d81f40af.tar.bz2 |
Handle QmlParserStatus's and QmlBindableValeus being deleted during component creation
Diffstat (limited to 'src/declarative/qml/qmlparserstatus.cpp')
-rw-r--r-- | src/declarative/qml/qmlparserstatus.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlparserstatus.cpp b/src/declarative/qml/qmlparserstatus.cpp index 71b7adf..fceac05 100644 --- a/src/declarative/qml/qmlparserstatus.cpp +++ b/src/declarative/qml/qmlparserstatus.cpp @@ -48,11 +48,17 @@ QT_BEGIN_NAMESPACE \brief The QmlParserStatus class provides updates on the parser state. */ -/*! - Destroys the parser status instance. -*/ +/*! \internal */ +QmlParserStatus::QmlParserStatus() +: d(0) +{ +} + +/*! \internal */ QmlParserStatus::~QmlParserStatus() { + if(d) + (*d) = 0; } /*! |