Re: [gdome]cvs version segfault: unref doc before element
- From: Paolo Casarini <casarini CS UniBO IT>
- To: "T.J. Mather" <tjmather tjmather com>
- Cc: gdome gnome org
- Subject: Re: [gdome]cvs version segfault: unref doc before element
- Date: Wed, 7 Nov 2001 09:33:40 +0100 (CET)
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.
] [Thread Prev