summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_model-view-programming.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-11-18 07:38:34 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-11-18 08:27:43 (GMT)
commit8c31c6529935cd9ee6f99bc38cfd182d5b3182e2 (patch)
tree25cf4e9fb4c01a6cd518b0278381dd7931357266 /doc/src/snippets/code/doc_src_model-view-programming.cpp
parent506c4285213c8da30f16a3b94b8e8ffdcab444e2 (diff)
downloadQt-8c31c6529935cd9ee6f99bc38cfd182d5b3182e2.zip
Qt-8c31c6529935cd9ee6f99bc38cfd182d5b3182e2.tar.gz
Qt-8c31c6529935cd9ee6f99bc38cfd182d5b3182e2.tar.bz2
Don't destroy Qt's internal pthread_key_t if it was not initialized
The destructor function destroy_current_thread_data_key() was always called on library unload, even if the pthread_key_t was not initialized. This can cause us to destroy a key that doesn't belong to us, as pointed out in the task below. Fix this by creating a function static instance of a class whose destructor will destroy the key. Task-number: QTBUG-10861 Reviewed-by: Morten Sørvig
Diffstat (limited to 'doc/src/snippets/code/doc_src_model-view-programming.cpp')
0 files changed, 0 insertions, 0 deletions