summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util/CountedPtr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util/CountedPtr.h b/src/common/util/CountedPtr.h
index 6b9847eb..d6cc46bb 100644
--- a/src/common/util/CountedPtr.h
+++ b/src/common/util/CountedPtr.h
@@ -107,7 +107,7 @@ public:
CountedPtr& operator=(const CountedPtr& copy)
{
if (this != &copy) {
- assert(_counter != copy._counter);
+ assert(_counter == NULL || _counter != copy._counter);
release();
retain(copy._counter);
}