| Index: sky/engine/core/painting/LayoutRoot.cpp
|
| diff --git a/sky/engine/core/painting/LayoutRoot.cpp b/sky/engine/core/painting/LayoutRoot.cpp
|
| index a2eedc4ea9ab0e9d6fb8636a820f04182d01c14b..c3ab733308c9894a6717259b0c4ba7093562f1c2 100644
|
| --- a/sky/engine/core/painting/LayoutRoot.cpp
|
| +++ b/sky/engine/core/painting/LayoutRoot.cpp
|
| @@ -37,6 +37,8 @@ LayoutRoot::LayoutRoot()
|
|
|
| LayoutRoot::~LayoutRoot()
|
| {
|
| + if (!m_document->needsAttach())
|
| + m_document->detach();
|
| }
|
|
|
| Element* LayoutRoot::rootElement() const
|
|
|