From e1933228e9308d049e8b3c4163dc1d394bd0357b Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Sun, 26 Jun 2016 23:09:42 +0200 Subject: Fix possible memory leak (SizeParams::forChild => childParams). --- dw/tools.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dw') 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 (); -- cgit v1.2.3