diff options
author | Sebastian Geerken <devnull@localhost> | 2016-06-26 21:10:29 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-06-26 21:10:29 +0200 |
commit | 40e01c0a5b6eac3494f3d3add93cf0907d286c13 (patch) | |
tree | a0c781ee04c59942c026d41406b0a3444b42183b /dw/ooffloatsmgr.cc | |
parent | 1fe97eb1c9fd0786aadf04eb9cf8588a57fc7600 (diff) |
Fix memory leak (OOFFloatsMgr::Float).
Diffstat (limited to 'dw/ooffloatsmgr.cc')
-rw-r--r-- | dw/ooffloatsmgr.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dw/ooffloatsmgr.cc b/dw/ooffloatsmgr.cc index 9b754fff..59a2a4bc 100644 --- a/dw/ooffloatsmgr.cc +++ b/dw/ooffloatsmgr.cc @@ -325,8 +325,8 @@ OOFFloatsMgr::OOFFloatsMgr (OOFAwareWidget *container, int oofmIndex) this->container = container; this->oofmIndex = oofmIndex; - leftFloats = new SortedFloatsVector (this, LEFT); - rightFloats = new SortedFloatsVector (this, RIGHT); + leftFloats = new SortedFloatsVector (this, LEFT, true); + rightFloats = new SortedFloatsVector (this, RIGHT, true); DBG_OBJ_SET_NUM ("leftFloats.size", leftFloats->size()); DBG_OBJ_SET_NUM ("rightFloats.size", rightFloats->size()); @@ -356,11 +356,11 @@ OOFFloatsMgr::~OOFFloatsMgr () delete tbInfos; delete tbInfosByOOFAwareWidget; - delete leftFloats; - delete rightFloats; - delete floatsByWidget; + delete leftFloats; + delete rightFloats; + DBG_OBJ_DELETE (); } |