Chromium Code Reviews| Index: Source/core/layout/LayoutPart.cpp |
| diff --git a/Source/core/layout/LayoutPart.cpp b/Source/core/layout/LayoutPart.cpp |
| index 35597aea0146a36494d82a4f6d5ae09eed5a8d86..be800342ecb7718524f04e2e67e2dec3609128e6 100644 |
| --- a/Source/core/layout/LayoutPart.cpp |
| +++ b/Source/core/layout/LayoutPart.cpp |
| @@ -54,7 +54,7 @@ LayoutPart::LayoutPart(Element* element) |
| void LayoutPart::deref() |
| { |
| if (--m_refCount <= 0) |
| - postDestroy(); |
| + delete this; |
| } |
| void LayoutPart::willBeDestroyed() |