summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativenotifier_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-03-17 07:23:44 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-03-17 07:24:22 (GMT)
commit8b6f892ae48d296875a295381d4f67a8a5968a30 (patch)
treeee4fa4a4fd2606f987746d4ccf290b57242f1ecc /src/declarative/qml/qdeclarativenotifier_p.h
parent0dcdcac2898c5978ea3250ed2627a9e47dd86d96 (diff)
downloadQt-8b6f892ae48d296875a295381d4f67a8a5968a30.zip
Qt-8b6f892ae48d296875a295381d4f67a8a5968a30.tar.gz
Qt-8b6f892ae48d296875a295381d4f67a8a5968a30.tar.bz2
Crash
Diffstat (limited to 'src/declarative/qml/qdeclarativenotifier_p.h')
-rw-r--r--src/declarative/qml/qdeclarativenotifier_p.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/declarative/qml/qdeclarativenotifier_p.h b/src/declarative/qml/qdeclarativenotifier_p.h
index a0e6b43..2a8087e 100644
--- a/src/declarative/qml/qdeclarativenotifier_p.h
+++ b/src/declarative/qml/qdeclarativenotifier_p.h
@@ -112,18 +112,22 @@ private:
QDeclarativeNotifier::QDeclarativeNotifier()
: endpoints(0)
{
- QDeclarativeNotifierEndpoint *endpoint = endpoints;
- while (endpoint) {
- QDeclarativeNotifierEndpoint *next = endpoint->asNotifier()->next;
- endpoint->asNotifier()->next = 0;
- endpoint->asNotifier()->prev = 0;
- endpoint->asNotifier()->notifier = 0;
- endpoint = next;
- }
}
QDeclarativeNotifier::~QDeclarativeNotifier()
{
+ QDeclarativeNotifierEndpoint *endpoint = endpoints;
+ while (endpoint) {
+ QDeclarativeNotifierEndpoint::Notifier *n = endpoint->asNotifier();
+ endpoint = n->next;
+
+ n->next = 0;
+ n->prev = 0;
+ n->notifier = 0;
+ if (n->disconnected) *n->disconnected = 0;
+ n->disconnected = 0;
+ }
+ endpoints = 0;
}
void QDeclarativeNotifier::notify()