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

usage of mCurrentPosition without checking mSlidingBuffer. r=harishd,
sr=sfraser, a=asa
This commit is contained in:
dp@netscape.com
2002-03-07 15:43:12 +00:00
parent 2d6ca07d1d
commit ecc40572d3
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;
}
}