fix(kernel/environment): initialization problem on OSX
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
ee9be2837b
commit
8ad0949269
1 changed files with 1 additions and 2 deletions
|
@ -169,9 +169,8 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static std::unique_ptr<extension_manager> g_extension_manager;
|
|
||||||
|
|
||||||
static extension_manager & get_extension_manager() {
|
static extension_manager & get_extension_manager() {
|
||||||
|
static std::unique_ptr<extension_manager> g_extension_manager;
|
||||||
if (!g_extension_manager)
|
if (!g_extension_manager)
|
||||||
g_extension_manager.reset(new extension_manager());
|
g_extension_manager.reset(new extension_manager());
|
||||||
return *g_extension_manager;
|
return *g_extension_manager;
|
||||||
|
|
Loading…
Reference in a new issue