We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55cdb83 commit eb8ba90Copy full SHA for eb8ba90
1 file changed
library/include/DebugManager.h
@@ -96,9 +96,9 @@ class DFHACK_EXPORT DebugManager : public std::vector<DebugCategory*> {
96
97
//! Get the singleton object
98
static DebugManager& getInstance() {
99
- // Plugins may still hold pointers to DebugManager's instance during shutdown.
100
- // If DebugManager's dtor runs first, use-after-free may ensue.
101
- // Intentionally leak to avoid this issue.
+ // Plugins may still hold pointers to DebugManager's instance during shutdown.
+ // If DebugManager's dtor runs first, use-after-free may ensue.
+ // Intentionally leak to avoid this issue.
102
static DebugManager* instance = new DebugManager();
103
return *instance;
104
}
0 commit comments