diff options
author | Sebastian Geerken <devnull@localhost> | 2016-06-26 23:09:42 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-06-26 23:09:42 +0200 |
commit | e1933228e9308d049e8b3c4163dc1d394bd0357b (patch) | |
tree | 234c7ff82933144c00f3448d2c2fdd392ecca82f /dw | |
parent | 40e01c0a5b6eac3494f3d3add93cf0907d286c13 (diff) |
Fix possible memory leak (SizeParams::forChild => childParams).
Diffstat (limited to 'dw')
-rw-r--r-- | dw/tools.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dw/tools.cc b/dw/tools.cc index 7579691c..1c9a9d4c 100644 --- a/dw/tools.cc +++ b/dw/tools.cc @@ -90,6 +90,8 @@ void SizeParams::forChild (Widget *parent, Widget *child, int xRel, int yRel, { DBG_OBJ_ENTER ("resize", 0, "forChild", "%p, %p, %d, %d, %p", parent, child, xRel, yRel, childParams); + + childParams->cleanup (); int numChildReferences = child->numSizeRequestReferences (); |