mirror of https://github.com/axmolengine/axmol.git
commit
151146deff
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue