Re: mem-leak in PD_Document


Subject: Re: mem-leak in PD_Document
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Sun Jul 15 2001 - 11:45:47 CDT


On Sun, 15 Jul 2001, Mike Nordell wrote:

> It seems to me the destructor of PD_Document should clean up the contents of
> its member m_vecLists, but since object ownership is sometimes a bit "fuzzy"
> (e.g. classes don't keep their private parts to themselves, sometimes
> letting their children play with them) I'm not 100% sure. Anyone?
>
> To reproduce the leak, just create a list and exit AbiWord.
>

Whoops! Feel free the delete the vectors along with their fl_AutoNum's
with a UT_VECTOR_PURGE_ALL in the destructor. Also feel
free to move the vector into private. Nothing else touches them.

Once the pd_Document is deleted we certainly don't need the fl_AutoNum's
anymore and their effectively owned by pd_Document.

Cheers

Martin



This archive was generated by hypermail 2b25 : Sun Jul 15 2001 - 11:45:50 CDT