diff options
author | Kargatum <dowlandtop@yandex.com> | 2021-06-25 00:50:18 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 19:50:18 +0200 |
commit | 3c24b511f2fb2b23618e9cd0b24d28cb5afa34ad (patch) | |
tree | 78baa1669874acf8b7adf1c1994e383e814a3146 /src/common/Threading/Threading.h | |
parent | 33c271cc7c191f72406873d81abd954525d093c0 (diff) |
refactor(Core/Misc): add braces and impove codestyle (#6402)
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; |