diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-02-26 21:03:06 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-02-26 21:03:06 +0000 |
commit | ad1a150e23c7dec4db4d264673b3077618f66309 (patch) | |
tree | bc1c2fdf50512644d5bf98db44ccac5130b79328 | |
parent | 9c9fbcc0b0408b8cb91cda2d1b14310aa0d80e62 (diff) |
Fix crash when compiled in release mode caused by refcount not decrementing.
The call to decrement the refcount was in an ASSERT macro, so compiled out in
release mode.
-rw-r--r-- | lib/backupstore/HousekeepStoreAccount.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/backupstore/HousekeepStoreAccount.cpp b/lib/backupstore/HousekeepStoreAccount.cpp index 0259461e..02e68857 100644 --- a/lib/backupstore/HousekeepStoreAccount.cpp +++ b/lib/backupstore/HousekeepStoreAccount.cpp @@ -864,7 +864,8 @@ BackupStoreRefCountDatabase::refcount_t HousekeepStoreAccount::DeleteFile( } // Drop reference count by one. Must now be zero, to delete the file. - ASSERT(!mapNewRefs->RemoveReference(ObjectID)) + bool remaining_refs = mapNewRefs->RemoveReference(ObjectID); + ASSERT(!remaining_refs); // Delete from disc BOX_TRACE("Removing unreferenced object " << |