[lnav_log] leak the dumper list vector to avoid static ordering issues

This commit is contained in:
Timothy Stack 2022-07-05 13:12:13 -07:00
parent 635dd996a9
commit 13910aff7a
1 changed files with 2 additions and 2 deletions

View File

@ -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;