mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 05:11:32 +00:00
Deliberately leak logfile string storage, so it's always around
This commit is contained in:
1 parent
af27e0de3b
commit
6854c5bf96
1 file changed
+4
-2
@@ -254,8 +254,10 @@ uint64_t Log2Floor(uint64_t value)
|
||||
|
||||
static string &logfile()
|
||||
{
|
||||
static string fn;
|
||||
return fn;
|
||||
// deliberately leak this so that it doesn't get destructed while we're still logging in process
|
||||
// teardown.
|
||||
static string *fn = new string;
|
||||
return *fn;
|
||||
}
|
||||
|
||||
const char *rdclog_getfilename()
|
||||
|
||||
Reference in new issue
Block a user