Merge pull request #10103 from damorton/v3

Update CCRef.cpp
This commit is contained in:
minggo 2015-01-20 16:09:35 +08:00
commit 151146deff
1 changed files with 2 additions and 2 deletions

View File

@ -81,13 +81,13 @@ Ref::~Ref()
void Ref::retain() void Ref::retain()
{ {
CCASSERT(_referenceCount > 0, "reference count should greater than 0"); CCASSERT(_referenceCount > 0, "reference count should be greater than 0");
++_referenceCount; ++_referenceCount;
} }
void Ref::release() void Ref::release()
{ {
CCASSERT(_referenceCount > 0, "reference count should greater than 0"); CCASSERT(_referenceCount > 0, "reference count should be greater than 0");
--_referenceCount; --_referenceCount;
if (_referenceCount == 0) if (_referenceCount == 0)