fix regression in viewsource

git-svn-id: svn://10.0.0.236/trunk@39731 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-07-16 19:18:06 +00:00
parent 98c06b0473
commit 6efc3eee40
2 changed files with 8 additions and 4 deletions

View File

@@ -54,8 +54,10 @@ nsCParserNode::nsCParserNode(CToken* aToken,PRInt32 aLineNumber,nsITokenRecycler
static void RecycleTokens(nsITokenRecycler* aRecycler,nsDeque& aDeque) {
CToken* theToken=0;
while(theToken=(CToken*)aDeque.Pop()){
aRecycler->RecycleToken(theToken);
if(aRecycler) {
while(theToken=(CToken*)aDeque.Pop()){
aRecycler->RecycleToken(theToken);
}
}
}