Bug 473540 - Fix leak in nsViewSourceHTML.cpp, r+sr=mrbkap

This commit is contained in:
Curtis Bartley 2009-01-17 21:44:32 +01:00
parent fc2ab5da36
commit c2305a06bf

View File

@ -1161,6 +1161,7 @@ void CViewSourceHTML::WriteTextInElement(const nsAString& tagName,
AddAttrToNode(startNode, allocator, attrName, attrValue);
}
mSink->OpenContainer(startNode);
IF_FREE(startToken, theAllocator);
// Add the text node.
CTextToken textToken(text);