diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-07-26 11:32:09 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-26 06:29:54 +0200 |
commit | d0b8a04c8d6801b84b7bd6fd62e921fbb45f0fe2 (patch) | |
tree | 7a1c9db5ca41518b8219673fb0589e479c6f734a /src/declarative/qml | |
parent | f5eb5ad7a0b5bbfc40070a65d7dfc84c53ef9414 (diff) |
Reference resources to prevent crash (on some platforms)
Prevent the data blob from being deleted in done().
Task-number: QTBUG-18268
Change-Id: Ib265e6fc3e1539d0baf20e365c1f88f615b121dc
Reviewed-on: http://codereview.qt.nokia.com/2138
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/declarative/qml')
-rw-r--r-- | src/declarative/qml/qdeclarativetypeloader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativetypeloader.cpp b/src/declarative/qml/qdeclarativetypeloader.cpp index 47c90bd186..cb3e8aef3e 100644 --- a/src/declarative/qml/qdeclarativetypeloader.cpp +++ b/src/declarative/qml/qdeclarativetypeloader.cpp @@ -379,8 +379,10 @@ void QDeclarativeDataBlob::tryDone() m_status = Complete; m_isDone = true; + addref(); done(); notifyAllWaitingOnMe(); + release(); } } |