properly initialize the result recycler when evaluating xslt PI params. r/sr=peterv b=362297 a=stuart

This commit is contained in:
cvshook%sicking.cc 2006-11-30 19:33:29 +00:00
parent c4193e984b
commit ab497a1b31

View File

@ -485,6 +485,9 @@ txMozillaXSLTProcessor::AddXSLTParam(const nsString& aName,
if (!mRecycler) {
mRecycler = new txResultRecycler;
NS_ENSURE_TRUE(mRecycler, NS_ERROR_OUT_OF_MEMORY);
rv = mRecycler->init();
NS_ENSURE_SUCCESS(rv, rv);
}
txXSLTParamContext paramContext(&mParamNamespaceMap, *contextNode,