(again) bug 116023 Parser recycling buffers. Protects all cases of

usage of mCurrentPosition without checking mSlidingBuffer. r=harishd,
sr=sfraser, a=asa


git-svn-id: svn://10.0.0.236/trunk@116061 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dp%netscape.com
2002-03-07 15:43:12 +00:00
parent 0536167ed4
commit ebea38ccd0
6 changed files with 252 additions and 74 deletions

View File

@@ -53,6 +53,7 @@
//#include "nsTextTokenizer.h"
#include "nsElementTable.h"
#include "nsParserService.h"
#include "nsScanner.h"
#ifdef NS_DEBUG
#include "nsLoggingSink.h"
@@ -118,6 +119,8 @@ Shutdown(nsIModule* aSelf)
DeleteElementTable();
CNewlineToken::FreeNewline();
gInitialized = PR_FALSE;
delete nsScanner::gAllocator;
nsScanner::gAllocator = nsnull;
}
}