Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af55cc71 authored by Alex Sakhartchouk's avatar Alex Sakhartchouk
Browse files

Fixing refcounting debug statements that've gotten bitrotten.

Change-Id: Ie93bf651b9e469b7b4e9cacd8f79b38d04012892
parent 26ae3904
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -71,13 +71,13 @@ void ObjectBase::setContext(Context *rsc)
void ObjectBase::incUserRef() const
{
    mUserRefCount ++;
    //LOGV("ObjectBase %p inc ref %i", this, mRefCount);
    //LOGV("ObjectBase %p inc ref %i", this, mUserRefCount);
}

void ObjectBase::incSysRef() const
{
    mSysRefCount ++;
    //LOGV("ObjectBase %p inc ref %i", this, mRefCount);
    //LOGV("ObjectBase %p inc ref %i", this, mSysRefCount);
}

bool ObjectBase::checkDelete() const
@@ -96,14 +96,14 @@ bool ObjectBase::decUserRef() const
{
    rsAssert(mUserRefCount > 0);
    mUserRefCount --;
    //dumpObj("decUserRef");
    //dumpLOGV("decUserRef");
    return checkDelete();
}

bool ObjectBase::zeroUserRef() const
{
    mUserRefCount = 0;
    //dumpObj("zeroUserRef");
    //dumpLOGV("zeroUserRef");
    return checkDelete();
}

@@ -111,7 +111,7 @@ bool ObjectBase::decSysRef() const
{
    rsAssert(mSysRefCount > 0);
    mSysRefCount --;
    //dumpObj("decSysRef");
    //dumpLOGV("decSysRef");
    return checkDelete();
}