Re: RE: problem with user_data
Tobias Peters <[email protected]>
| Newsgroups | gmane.comp.gnome.gdome |
|---|---|
| Message-ID | <Pine.HPP.3.96.1020405091252.2378B-100000@hpux16.hrz.uni-oldenburg.de> |
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