mirror of https://github.com/tstack/lnav.git
[lnav_log] leak the dumper list vector to avoid static ordering issues
This commit is contained in:
parent
635dd996a9
commit
13910aff7a
|
@ -126,9 +126,9 @@ lnav_log_mutex()
|
|||
static std::vector<log_state_dumper*>&
|
||||
DUMPER_LIST()
|
||||
{
|
||||
static std::vector<log_state_dumper*> retval;
|
||||
static auto* retval = new std::vector<log_state_dumper*>();
|
||||
|
||||
return retval;
|
||||
return *retval;
|
||||
}
|
||||
static std::vector<log_crash_recoverer*> CRASH_LIST;
|
||||
|
||||
|
|
Loading…
Reference in New Issue