Merge bug 205703

git-svn-id: svn://10.0.0.236/branches/TX_WALKER_BRANCH@145984 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sicking%bigfoot.com
2003-08-13 23:52:27 +00:00
parent e0772eabcc
commit bea2b7c1de
2 changed files with 15 additions and 11 deletions

View File

@@ -62,17 +62,8 @@ public:
{
++mRefCnt;
}
void Release()
{
if (--mRefCnt == 0) {
if (mRecycler) {
mRecycler->recycle(this);
}
else {
delete this;
}
}
}
void Release(); // Implemented in txResultRecycler.cpp
/**
* Returns the type of ExprResult represented

View File

@@ -286,3 +286,16 @@ txResultRecycler::getNonSharedNodeSet(txNodeSet* aNodeSet, txNodeSet** aResult)
return NS_OK;
}
void
txAExprResult::Release()
{
if (--mRefCnt == 0) {
if (mRecycler) {
mRecycler->recycle(this);
}
else {
delete this;
}
}
}