aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.hh
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/widget.hh
parent3945e91283e1aa2d69deed90f7f551ddda71a12a (diff)
Two more memory problems.
Diffstat (limited to 'dw/widget.hh')
-rw-r--r--dw/widget.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/widget.hh b/dw/widget.hh
index 8ebc2767..e7ac7f55 100644
--- a/dw/widget.hh
+++ b/dw/widget.hh
@@ -252,7 +252,7 @@ protected:
{ layout->changeAnchor (this, name, y); }
inline void removeAnchor (char* name)
- { layout->removeAnchor (this, name); }
+ { if (layout) layout->removeAnchor (this, name); }
//inline void updateBgColor () { layout->updateBgColor (); }