Re: [gdome]RE: problem with user_data



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]