Re: [gdome]Do I use gdome_di_freeDoc?
- From: "Mr H. Morgan" <hmorgan2 hgmp mrc ac uk>
- To: tpeters uni-oldenburg de, gdome gnome org
- Subject: Re: [gdome]Do I use gdome_di_freeDoc?
- Date: Tue, 21 Jan 2003 11:52:10 +0000 (GMT)
Hi Tobias,
>On Mon, 20 Jan 2003, Mr H. Morgan wrote:
>> I am using gdome for generating an xml document. I notice that
>> gdome_di_freeDoc has been depricated. However, if I do not use this
>> function, I get more memory left still reachable when the program
>> finishes (as detected by Valgrind). If I do use this function, I get a
>> load of errors but less memory still reachable.
>
>IIRC, gdome2 has some one-time overhead memory allocation that is never
>freed again. You should check if this is what you're seeing by running
>the relevant parts of your program in a loop and see if the ammount of
>leaked memory increases.
>
I have done this, and you are right, the memory left uncleared does not
increase with the size of the DOM tree. I guess I just have to live
with it.
Thanks for the help,
Hugh
>> I notice the examples still use gdome_di_freeDoc. What is the correct
>> way to clear the memory used by gdome?
>
>not to use gdome_di_freeDoc
>
> T
>
>
>_______________________________________________
>gdome mailing list
>gdome gnome org
>http://mail.gnome.org/mailman/listinfo/gdome
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]