| Index: src/pdf/SkSinglyLinkedList.h
|
| diff --git a/src/pdf/SkSinglyLinkedList.h b/src/pdf/SkSinglyLinkedList.h
|
| index c157c31d16c03e2543a82d6cb72f72e0d1fe5f33..c7101141d6421b1b0cbb2691e56002bc99a1f3fb 100644
|
| --- a/src/pdf/SkSinglyLinkedList.h
|
| +++ b/src/pdf/SkSinglyLinkedList.h
|
| @@ -18,6 +18,7 @@ public:
|
| ~SkSinglyLinkedList() { this->reset(); }
|
| void reset() {
|
| SkASSERT(fHead != nullptr || nullptr == fTail);
|
| + // Use a while loop rather than recursion to avoid stack overflow.
|
| Node* node = fHead;
|
| while (node) {
|
| Node* next = node->fNext;
|
|
|