mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
core(logger): avoid destruction of GlobalLoggingInitStruct object
- keep logger available until the program termination
This commit is contained in:
parent
199687a1c5
commit
6f5d56d994
@ -94,8 +94,7 @@ LogLevel GlobalLoggingInitStruct::m_defaultUnconfiguredGlobalLevel = GlobalLoggi
|
|||||||
//
|
//
|
||||||
static GlobalLoggingInitStruct& getGlobalLoggingInitStruct()
|
static GlobalLoggingInitStruct& getGlobalLoggingInitStruct()
|
||||||
{
|
{
|
||||||
static GlobalLoggingInitStruct globalLoggingInitInstance;
|
CV_SINGLETON_LAZY_INIT_REF(GlobalLoggingInitStruct, new GlobalLoggingInitStruct());
|
||||||
return globalLoggingInitInstance;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// To ensure that the combined struct defined above is initialized even
|
// To ensure that the combined struct defined above is initialized even
|
||||||
|
@ -218,6 +218,13 @@
|
|||||||
fun:__itt_*create*
|
fun:__itt_*create*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
OpenCV-SingletonLogger
|
||||||
|
Memcheck:Leak
|
||||||
|
...
|
||||||
|
fun:_ZN2cv5utils7logging8internalL26getGlobalLoggingInitStructEv
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
OpenCV-gtk_init
|
OpenCV-gtk_init
|
||||||
Memcheck:Leak
|
Memcheck:Leak
|
||||||
|
Loading…
Reference in New Issue
Block a user