Kaydet (Commit) 9591852c authored tarafından Caolán McNamara's avatar Caolán McNamara

don't set singletonCreated before possible throws

üst ae635c1e
......@@ -154,9 +154,9 @@ void Components::initSingleton(
{
OSL_ASSERT(context.is());
if (!singletonCreated) {
singletonCreated = true;
static Components theSingleton(context);
singleton = &theSingleton;
singletonCreated = true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment