diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-05-20 09:25:32 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-05-20 09:36:17 (GMT) |
commit | 4a8c7e432931b27e7a5440a6d15bde999e962f35 (patch) | |
tree | e5f0a37b68c6fa8a9b0c992f35d8f0c4c4e6ca61 /tests/auto/qsslsocket/tst_qsslsocket.cpp | |
parent | d5348b5fc3a6efe13fd1dbe585b28addfa4344b3 (diff) | |
download | Qt-4a8c7e432931b27e7a5440a6d15bde999e962f35.zip Qt-4a8c7e432931b27e7a5440a6d15bde999e962f35.tar.gz Qt-4a8c7e432931b27e7a5440a6d15bde999e962f35.tar.bz2 |
Fix a crash where QCocoaWindow get events after its widget is dead
The invariant that QCocoaWindow's lifetime is contained in a QWidget is
simply not true.
A top-level QWidget gets associated with a QCocoaWindow (which is
reference counted). However, it can be the case that we've destroyed our
QWidget, the link is removed, the window is hidden, but the window still
gets an event. In that case we would crash with an eventual null pointer
access. However, we don't really need to do anything in this case, so
just call super and return.
Task-number: 253402
Reviewed-by: Morten Sørvig
Diffstat (limited to 'tests/auto/qsslsocket/tst_qsslsocket.cpp')
0 files changed, 0 insertions, 0 deletions