summaryrefslogtreecommitdiff
path: root/qmake/tools/qcomlibrary.cpp
Unidiff
Diffstat (limited to 'qmake/tools/qcomlibrary.cpp') (more/less context) (show whitespace changes)
-rw-r--r--qmake/tools/qcomlibrary.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/qmake/tools/qcomlibrary.cpp b/qmake/tools/qcomlibrary.cpp
index a7162fc..2a1b75a 100644
--- a/qmake/tools/qcomlibrary.cpp
+++ b/qmake/tools/qcomlibrary.cpp
@@ -65,2 +65,6 @@ QComLibrary::~QComLibrary()
65 unload(); 65 unload();
66 if ( libiface )
67 libiface->release();
68 if ( entry )
69 entry->release();
66} 70}
@@ -393,6 +397,5 @@ void QComLibrary::createInstanceInternal()
393 397
394 if ( ! query_done ) {
395
396#ifdef QT_THREAD_SUPPORT 398#ifdef QT_THREAD_SUPPORT
397 QMutexLocker locker( qt_global_mutexpool->get( &cache ) ); 399 QMutexLocker locker( qt_global_mutexpool ?
400 qt_global_mutexpool->get( &cache ) : 0 );
398#endif // QT_THREAD_SUPPORT 401#endif // QT_THREAD_SUPPORT
@@ -417,3 +420,2 @@ void QComLibrary::createInstanceInternal()
417 } 420 }
418 }
419 421
@@ -463,7 +465,2 @@ void QComLibrary::createInstanceInternal()
463 if ( queried != reg ) { 465 if ( queried != reg ) {
464
465#ifdef QT_THREAD_SUPPORT
466 QMutexLocker locker( qt_global_mutexpool->get( &cache ) );
467#endif // QT_THREAD_SUPPORT
468
469 cache->writeEntry( regkey, queried ); 466 cache->writeEntry( regkey, queried );