STRATA_ACT_DUMP: keep the accumulator alive for the exit flush

This commit is contained in:
Niko1221 committed 2026-10-20 14:36:38 +02:00
1 parent 2ec3d2e381
commit 0b4e603cfd
1 file changed
+2 -2
+2 -2
View File
@@ -170,8 +170,8 @@ struct ActDump {
static void act_dump_flush();
};
ActDump& act_dump() {
static ActDump d;
return d;
static ActDump* d = new ActDump; // never destroyed: the atexit flush must still find it
return *d;
}
void ActDump::act_dump_flush() {
ActDump& d = act_dump();