Re: getProperties() error ?

From: Marc Maurer <j.m.maurer_at_student.utwente.nl>
Date: Sun Jul 11 2004 - 02:59:41 CEST

Op zo 11-07-2004, om 02:57 schreef Marc Maurer:
> > > pLayout->getAttrProp(&pAP, pRevisions, bShowRevisions, iId,
> > > bHiddenRevision);
> > > DELETEP(pRevisions); // we don't need it
> >
> > Never do this! The properties vector points to allocated memory that is
> > only deleted when the whole piecetable is delted. You get bitten by this
> > later.
>
> Erm, this is all over our codebase ... in fact, fl_Layout::getAttrProp
> even _tells_ me to do it!

Mind, I delete the REVISIONS struct, not the PROPERTIES pointer!

Marc
Received on Sun Jul 11 02:42:35 2004

This archive was generated by hypermail 2.1.8 : Sun Jul 11 2004 - 02:42:35 CEST