mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Delete mNext iteratively to avoid blowing up the stack. b=460461 r+sr=dbaron
This commit is contained in:
parent
92bdda65fa
commit
ada556a4e8
@ -202,7 +202,15 @@ public:
|
||||
NS_HIDDEN ~UndisplayedNode()
|
||||
{
|
||||
MOZ_COUNT_DTOR(UndisplayedNode);
|
||||
delete mNext;
|
||||
|
||||
// Delete mNext iteratively to avoid blowing up the stack (bug 460461).
|
||||
UndisplayedNode *cur = mNext;
|
||||
while (cur) {
|
||||
UndisplayedNode *next = cur->mNext;
|
||||
cur->mNext = nsnull;
|
||||
delete cur;
|
||||
cur = next;
|
||||
}
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIContent> mContent;
|
||||
|
Loading…
Reference in New Issue
Block a user