leak removal; r=harishd

git-svn-id: svn://10.0.0.236/trunk@64144 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
2000-03-26 04:45:45 +00:00
parent 4b378b8424
commit f4565bc7e0
6 changed files with 28 additions and 8 deletions

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;