summaryrefslogtreecommitdiff
path: root/dw/tools.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-06-26 23:09:42 +0200
committerSebastian Geerken <devnull@localhost>2016-06-26 23:09:42 +0200
commite1933228e9308d049e8b3c4163dc1d394bd0357b (patch)
tree234c7ff82933144c00f3448d2c2fdd392ecca82f /dw/tools.cc
parent40e01c0a5b6eac3494f3d3add93cf0907d286c13 (diff)
Fix possible memory leak (SizeParams::forChild => childParams).
Diffstat (limited to 'dw/tools.cc')
-rw-r--r--dw/tools.cc2
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 ();