Don't remove singletons during shutdown
Signed-off-by: Sinan Kaya <sinan.kaya@microsoft.com>
This commit is contained in:
Родитель
bedec757a5
Коммит
d0687abe3e
|
@ -575,8 +575,8 @@ void ComContainer::FreeCURL(CURL *ptr)
|
|||
|
||||
ComContainer &ComContainer::GetInstance()
|
||||
{
|
||||
static ComContainer the_instance;
|
||||
return the_instance;
|
||||
static ComContainer *the_instance = new ComContainer();
|
||||
return *the_instance;
|
||||
}
|
||||
|
||||
void ComContainer::ResumeTransfer(CURL *handle, int bitmask)
|
||||
|
|
|
@ -497,8 +497,8 @@ class WinHttpHandleContainer
|
|||
public:
|
||||
static WinHttpHandleContainer &Instance()
|
||||
{
|
||||
static WinHttpHandleContainer the_instance;
|
||||
return the_instance;
|
||||
static WinHttpHandleContainer *the_instance = new WinHttpHandleContainer<T>();
|
||||
return *the_instance;
|
||||
}
|
||||
|
||||
void UnRegister(T *val);
|
||||
|
|
Загрузка…
Ссылка в новой задаче