leak removal; r=harishd

This commit is contained in:
rickg@netscape.com
2000-03-26 04:45:45 +00:00
parent 4348f9997c
commit 775e5ddc35
6 changed files with 28 additions and 8 deletions
+4 -3
View File
@@ -329,9 +329,10 @@ nsresult CViewSourceHTML::WillBuildModel( const CParserContext& aParserContext,
//now let's automatically open the root container...
CToken theToken("viewsource");
nsCParserNode theNode(&theToken,0);
CAttributeToken theAttr("xmlns","http://www.mozilla.org/viewsource");
theNode.AddAttribute(&theAttr);
CAttributeToken *theAttr=new CAttributeToken("xmlns","http://www.mozilla.org/viewsource");
if(theAttr)
theNode.AddAttribute(theAttr);
mSink->OpenContainer(theNode);
}
@@ -341,7 +342,7 @@ nsresult CViewSourceHTML::WillBuildModel( const CParserContext& aParserContext,
else mDocType=aParserContext.mDocType;
mLineNumber=0;
result = mSink->WillBuildModel();
result = mSink->WillBuildModel();
START_TIMER();
return result;