aboutsummaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/snippets/textdocument-resources/main.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-09-09 14:20:58 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-09-19 13:28:40 +0000
commit3eb940cbd77cea9603d1c180f81eb4a2a474ef90 (patch)
treef55089f306993cbe82d2a9eefd3751fbd2b57a0a /doc/codesnippets/snippets/textdocument-resources/main.cpp
parent7ed4c11de3bded1bfb67cddaade2da518559527a (diff)
GlobalReceiverV2: Suppress handling of destroyed() when deleting objects
Set the dynamic slot member m_data to 0 before deleting it and bail out of qt_metacall() if that is the case. This prevents a crash when the object is deleted by this if the last reference was held by it. Task-number: PYSIDE-88 Change-Id: Iaf173f1305c92861425af2c6447a6aab99451634 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'doc/codesnippets/snippets/textdocument-resources/main.cpp')
0 files changed, 0 insertions, 0 deletions