STRATA_ACT_DUMP: keep the accumulator alive for the exit flush
This commit is contained in:
1 parent
2ec3d2e381
commit
0b4e603cfd
1 file changed
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user