summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativenotifier_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-03-17 09:07:38 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-03-17 09:08:54 (GMT)
commitd54b11fef6403693de09277a645c9666f8eea6a2 (patch)
tree46b37c15ef196dc7b2b3af6779a22b26340ecb88 /src/declarative/qml/qdeclarativenotifier_p.h
parentfd63689b6202fac71e2b037f70a3ee808ba571ec (diff)
downloadQt-d54b11fef6403693de09277a645c9666f8eea6a2.zip
Qt-d54b11fef6403693de09277a645c9666f8eea6a2.tar.gz
Qt-d54b11fef6403693de09277a645c9666f8eea6a2.tar.bz2
Fix crash
If the notifier gets swapped out during emitting, the endpoint is also invalidated. Thus the "disconnected" writeback must track the endpoint not just the Notifier.
Diffstat (limited to 'src/declarative/qml/qdeclarativenotifier_p.h')
-rw-r--r--src/declarative/qml/qdeclarativenotifier_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativenotifier_p.h b/src/declarative/qml/qdeclarativenotifier_p.h
index 2a8087e..2a9660d 100644
--- a/src/declarative/qml/qdeclarativenotifier_p.h
+++ b/src/declarative/qml/qdeclarativenotifier_p.h
@@ -91,7 +91,7 @@ private:
struct Notifier {
QDeclarativeNotifier *notifier;
- Notifier **disconnected;
+ QDeclarativeNotifierEndpoint **disconnected;
QDeclarativeNotifierEndpoint *next;
QDeclarativeNotifierEndpoint **prev;