mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Clean up nsHtml5Parser destructor
This commit is contained in:
parent
0a5ee2be2b
commit
0101b8870f
@ -182,18 +182,15 @@ nsHtml5Parser::nsHtml5Parser()
|
||||
|
||||
nsHtml5Parser::~nsHtml5Parser()
|
||||
{
|
||||
while (mFirstBuffer->next) {
|
||||
nsHtml5UTF16Buffer* oldBuf = mFirstBuffer;
|
||||
mFirstBuffer = mFirstBuffer->next;
|
||||
delete oldBuf;
|
||||
while(mFirstBuffer) {
|
||||
nsHtml5UTF16Buffer* old = mFirstBuffer;
|
||||
mFirstBuffer = mFirstBuffer->next;
|
||||
delete old;
|
||||
}
|
||||
delete mFirstBuffer;
|
||||
|
||||
delete mTokenizer;
|
||||
delete mTreeBuilder;
|
||||
if (mSniffingBuffer) {
|
||||
delete[] mSniffingBuffer;
|
||||
}
|
||||
delete[] mSniffingBuffer;
|
||||
delete mMetaScanner;
|
||||
#ifdef DEBUG
|
||||
delete mSnapshot;
|
||||
|
Loading…
Reference in New Issue
Block a user