FormatManager: actually return the singleton instance.
This should work better.
This commit is contained in:
@@ -143,11 +143,10 @@ FormatManager::CreateInstance()
|
|||||||
/* static */ FormatManager*
|
/* static */ FormatManager*
|
||||||
FormatManager::GetInstance()
|
FormatManager::GetInstance()
|
||||||
{
|
{
|
||||||
static FormatManager* sFormatManager = NULL;
|
if (sInstance == NULL)
|
||||||
if (sFormatManager == NULL)
|
|
||||||
pthread_once(&sInitOnce, &CreateInstance);
|
pthread_once(&sInitOnce, &CreateInstance);
|
||||||
|
|
||||||
return sFormatManager;
|
return sInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user