diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-19 08:52:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-19 11:56:57 +0100 |
commit | c7738b754d25994449a390fc8ef5fedf546f6b96 (patch) | |
tree | 3856cc5d3e3000333645a47bf557ebf12a4a0027 | |
parent | 86ec8c1520e2a2354707445b3182f3371df522ac (diff) |
don't set singletonCreated before possible throws
-rw-r--r-- | configmgr/source/components.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx index ae0da5f759..f76f020089 100644 --- a/configmgr/source/components.cxx +++ b/configmgr/source/components.cxx @@ -154,9 +154,9 @@ void Components::initSingleton( { OSL_ASSERT(context.is()); if (!singletonCreated) { - singletonCreated = true; static Components theSingleton(context); singleton = &theSingleton; + singletonCreated = true; } } |