提交 6f5d56d9 编写于 作者: A Alexander Alekhin

core(logger): avoid destruction of GlobalLoggingInitStruct object

- keep logger available until the program termination
上级 199687a1
......@@ -94,8 +94,7 @@ LogLevel GlobalLoggingInitStruct::m_defaultUnconfiguredGlobalLevel = GlobalLoggi
//
static GlobalLoggingInitStruct& getGlobalLoggingInitStruct()
{
static GlobalLoggingInitStruct globalLoggingInitInstance;
return globalLoggingInitInstance;
CV_SINGLETON_LAZY_INIT_REF(GlobalLoggingInitStruct, new GlobalLoggingInitStruct());
}
// To ensure that the combined struct defined above is initialized even
......
......@@ -218,6 +218,13 @@
fun:__itt_*create*
}
{
OpenCV-SingletonLogger
Memcheck:Leak
...
fun:_ZN2cv5utils7logging8internalL26getGlobalLoggingInitStructEv
}
{
OpenCV-gtk_init
Memcheck:Leak
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册