diff options
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
-rw-r--r-- | src/corelib/thread/qthread.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index d18056063f..6a736bcfa8 100644 --- a/src/corelib/thread/qthread.cpp +++ b/src/corelib/thread/qthread.cpp @@ -67,7 +67,9 @@ QThreadData::QThreadData(int initialRefCount) QThreadData::~QThreadData() { +#if QT_CONFIG(thread) Q_ASSERT(_ref.loadRelaxed() == 0); +#endif // In the odd case that Qt is running on a secondary thread, the main // thread instance will have been dereffed asunder because of the deref in |