mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Fix leak in my recent fix for PR8442.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6a559cd695
commit
a17cceceef
@ -132,7 +132,7 @@ public:
|
||||
void DropRef() {
|
||||
sys::SmartScopedLock<true> Lock(*ALMutex);
|
||||
sys::cas_flag old = RefCount++;
|
||||
if (old == 0)
|
||||
if (old == 1)
|
||||
delete this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user