diff options
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index 58b30fb3..542b8ea4 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -308,6 +308,9 @@ Layout::~Layout () if (bgImage) bgImage->unref (); if (topLevel) { + // Sometimes, the toplevel widget does some stuff after the + // layout has been deleted. + topLevel->layout = NULL; Widget *w = topLevel; topLevel = NULL; delete w; |