Fix a crash in eraseToken

This commit is contained in:
Nicolas Le Cam 2008-12-12 00:18:57 +00:00
parent 949e1ad6b8
commit 4f8ab7fa03
1 changed files with 4 additions and 3 deletions

View File

@ -377,6 +377,7 @@ void TOKEN::eraseToken()
{
TOKEN *next = this->next();
this->next( next->next() );
if ( next->next() )
next->next()->previous( this );
delete next;
}