Kaydet (Commit) 939e2900 authored tarafından Jian Fang Zhang's avatar Jian Fang Zhang

#i120677#, prevent putting non singleton object FrameworkHelper into SdGlobalResourceContainer

Found by: zhangjf 
Patch by: zhangjf
üst 1e51e5da
...@@ -384,7 +384,6 @@ FrameworkHelper::InstanceMap FrameworkHelper::maInstanceMap; ...@@ -384,7 +384,6 @@ FrameworkHelper::InstanceMap FrameworkHelper::maInstanceMap;
pHelper = ::boost::shared_ptr<FrameworkHelper>(new FrameworkHelper(rBase)); pHelper = ::boost::shared_ptr<FrameworkHelper>(new FrameworkHelper(rBase));
pHelper->Initialize(); pHelper->Initialize();
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER(); OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
SdGlobalResourceContainer::Instance().AddResource(pHelper);
maInstanceMap[&rBase] = pHelper; maInstanceMap[&rBase] = pHelper;
} }
} }
......
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