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

pull/824/merge
Timothy Stack 2 years ago
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…
Cancel
Save