Re: [gdome] Gdome providing free()

Blair Zajac wrote:
> Luca Padovani wrote:
> >
> > Hi Blair,
> >
> > On Mon, 2003-03-17 at 21:39, Blair Zajac wrote:
> > > I haven't looked at the GdomeDOMString code yet, so does this require a string
> > > copy?  I'd like to minimize these.
> >
> > GdomeDOMString does NOT copy the string returned by libxml2, it only
> > wraps the pointer returned by libxml2 within another little structure,
> > but I understood your main concern (as by email subject) was the fact
> > that one has to use the right deallocator when freeing memory allocated
> > by libxml2. So what I'm saying is that GdomeDOMString will use the right
> > deallocator, hence it will fix the problem reported for this particular
> > email thread, however...

Unless I hear otherwise, I'll code the new patch that'll replace the char *
buffer with a GdomeDOMString * and keep the int * from my first patch.

Since we have the length, it would be a waste not to pass it to the caller.


Blair Zajac <blair orcaware com>
Plots of your system's performance -

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]