Bug 485217 - Pop the eval context before returning. r+sr=peterv

This commit is contained in:
Blake Kaplan 2009-03-25 13:07:44 -07:00
parent 43a2d64fae
commit ffa24f05a8

View File

@ -395,9 +395,9 @@ nsresult txXSLKey::testNode(const txXPathNode& aNode,
nsRefPtr<txAExprResult> exprResult;
rv = mKeys[currKey].useExpr->evaluate(&evalContext,
getter_AddRefs(exprResult));
NS_ENSURE_SUCCESS(rv, rv);
aEs.popEvalContext();
NS_ENSURE_SUCCESS(rv, rv);
if (exprResult->getResultType() == txAExprResult::NODESET) {
txNodeSet* res = static_cast<txNodeSet*>