summaryrefslogtreecommitdiff
path: root/cppu/source/uno/lbmap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/source/uno/lbmap.cxx')
-rw-r--r--cppu/source/uno/lbmap.cxx15
1 files changed, 4 insertions, 11 deletions
diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx
index e1c606bf5c67..c5ce6709991f 100644
--- a/cppu/source/uno/lbmap.cxx
+++ b/cppu/source/uno/lbmap.cxx
@@ -158,17 +158,10 @@ struct MappingsData
static MappingsData & getMappingsData()
{
- static MappingsData * s_p = nullptr;
- if (! s_p)
- {
- MutexGuard aGuard( Mutex::getGlobalMutex() );
- if (! s_p)
- {
- //TODO This memory is leaked; see #i63473# for when this should be
- // changed again:
- s_p = new MappingsData;
- }
- }
+ //TODO This memory is leaked; see #i63473# for when this should be
+ // changed again:
+ static MappingsData * s_p(new MappingsData);
+
return *s_p;
}