Re: [gdome]cvs version segfault: unref doc before element

On Sun, 28 Oct 2001, T.J. Mather wrote:

> I've run into a problem with the new memory management functions.
> Decreasing the reference count of the document node before one of its
> elements results in a segmentation fault.  Here's a program that
> illustrates the problem:
> [...]
> If the doc_unref line comes after the el_unref line instead of before,
> then the program works properly.
> I'm not sure if this is a feature request or a bug report, but it would be
> handy to be able to decrement the ref counts in any order.
> I'm working on XML::GDOME, a perl wrapper for gdome, and would like to
> call unref every time the Perl wrapper object is freed, but I cannot
> guarantee the order in which the Perl objects are freed.

Fixed on CVS.


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