- keep logger available until the program termination
//
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
fun:__itt_*create*
}
+{
+ OpenCV-SingletonLogger
+ Memcheck:Leak
+ ...
+ fun:_ZN2cv5utils7logging8internalL26getGlobalLoggingInitStructEv
+}
+
{
OpenCV-gtk_init
Memcheck:Leak