summaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-03-02 11:44:28 +0100
committerSebastian Geerken <devnull@localhost>2014-03-02 11:44:28 +0100
commit99c1ac5f4ac2681e2740b076a3ab9c0bcab7817e (patch)
tree55c41305a6f24dc5345dd9a1a8a1d430c4a350a7 /dw/layout.cc
parent3945e91283e1aa2d69deed90f7f551ddda71a12a (diff)
Two more memory problems.
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc3
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;