diff --git a/mozilla/extensions/transformiix/source/xpath/ExprResult.h b/mozilla/extensions/transformiix/source/xpath/ExprResult.h index 564a53d709e..bf5f7bebfbf 100644 --- a/mozilla/extensions/transformiix/source/xpath/ExprResult.h +++ b/mozilla/extensions/transformiix/source/xpath/ExprResult.h @@ -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 diff --git a/mozilla/extensions/transformiix/source/xpath/txResultRecycler.cpp b/mozilla/extensions/transformiix/source/xpath/txResultRecycler.cpp index 5e8ee8519ba..5bceaba81cc 100644 --- a/mozilla/extensions/transformiix/source/xpath/txResultRecycler.cpp +++ b/mozilla/extensions/transformiix/source/xpath/txResultRecycler.cpp @@ -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; + } + } +}