changeset 4610:140547aa6e32

Fix possible memory leak (SizeParams::forChild => childParams).
author Sebastian Geerken
date So, 26 Jun 2016 23:09:42 +0200
parents 286c61a84b4a
children c67e33f51c67
files dw/tools.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dw/tools.cc	So Jun 26 21:10:29 2016 +0200
+++ b/dw/tools.cc	So Jun 26 23:09:42 2016 +0200
@@ -90,6 +90,8 @@
 {
    DBG_OBJ_ENTER ("resize", 0, "forChild", "%p, %p, %d, %d, %p",
                   parent, child, xRel, yRel, childParams);
+
+   childParams->cleanup ();
    
    int numChildReferences = child->numSizeRequestReferences ();