Re: [gdome]RE: problem with user_data
- From: Tobias Peters <tpeters uni-oldenburg de>
- To: gdome gnome org
- Subject: Re: [gdome]RE: problem with user_data
- Date: Fri, 5 Apr 2002 09:22:46 +0200 (METDST)
gdome nodes are created from an underlying libxml tree structure, and
simply deallocated when their reference count reaches 0. And recreated
again from the libxml tree when you need a specific node again, but with a
user_data pointer set to NULL.
If you just increase the reference count for all gdome nodes that point to
user data you should be fine, Set the user_data pointer to NULL and
decrease the extra reference count of the node when you do not need the
user_data any more.
Since speed is an issue for you, you would also want to do this to prevent
the continuous allocation and deallocation of gdome nodes.
Tobias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]