diff options
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/threadpool/current.cxx | 2 | ||||
-rw-r--r-- | cppu/source/threadpool/threadident.cxx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cppu/source/threadpool/current.cxx b/cppu/source/threadpool/current.cxx index eafb0bbb0705..1b82a02d30cc 100644 --- a/cppu/source/threadpool/current.cxx +++ b/cppu/source/threadpool/current.cxx @@ -163,7 +163,7 @@ IdContainer * getIdContainer() IdContainer * pId = static_cast< IdContainer * >( ::osl_getThreadKeyData( aKey ) ); if (! pId) { - pId = new IdContainer(); + pId = new IdContainer; pId->pCurrentContext = nullptr; pId->pCurrentContextEnv = nullptr; pId->bInit = false; diff --git a/cppu/source/threadpool/threadident.cxx b/cppu/source/threadpool/threadident.cxx index a9b1dcefd623..24037f6e4d2e 100644 --- a/cppu/source/threadpool/threadident.cxx +++ b/cppu/source/threadpool/threadident.cxx @@ -85,6 +85,7 @@ extern "C" void SAL_CALL uno_releaseIdFromCurrentThread() { IdContainer *p = getIdContainer(); OSL_ASSERT( p ); + OSL_ASSERT( p->bInit ); OSL_ASSERT( p->nRefCountOfCurrentId ); p->nRefCountOfCurrentId --; |