summaryrefslogtreecommitdiffstats
path: root/src/common/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util')
-rw-r--r--src/common/util/CountedPtr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util/CountedPtr.h b/src/common/util/CountedPtr.h
index 5c2a48f0..0886bf36 100644
--- a/src/common/util/CountedPtr.h
+++ b/src/common/util/CountedPtr.h
@@ -101,6 +101,7 @@ public:
CountedPtr& operator=(const CountedPtr& copy)
{
if (this != &copy) {
+ assert(_counter != copy._counter);
release();
retain(copy._counter);
}
@@ -112,6 +113,7 @@ public:
CountedPtr& operator=(const CountedPtr<Y>& y)
{
if (this != (CountedPtr*)&y) {
+ assert(_counter != y._counter);
release();
retain(y._counter);
}