diff options
Diffstat (limited to 'src/common/Threading/Threading.h')
| -rw-r--r-- | src/common/Threading/Threading.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/Threading/Threading.h b/src/common/Threading/Threading.h index e2bdccb653..52922eaa29 100644 --- a/src/common/Threading/Threading.h +++ b/src/common/Threading/Threading.h @@ -22,7 +22,9 @@ namespace Acore void decReference() { if (!--m_refs) + { delete this; + } } private: std::atomic_long m_refs; |
