Re: Question about memory problem
"John J. Boyer" <[email protected]> Tue, 9 Nov 2004 08:24:24 -0600 (CST)
| Newsgroups | gmane.comp.gnome.gdome |
|---|---|
| Message-ID | <[email protected]> |
Try reversing the order of the two last statements in your code. The document should be freed BEFORE the implementation is freed. John On Tue, 9 Nov 2004, scetre wrote: > I have an app which used gdome and I have problem of memory. I know that > the problem come from the use of GdomeDocument. I have tracked the > memory with valgrind. > > the code is : > ----------------------------------- > /* Get a DOMImplementation reference */ > domimpl = gdome_di_mkref (); > > /* Load a new document from a file */ > doc = gdome_di_createDocFromURI(domimpl, "toto.xml", GDOME_LOAD_PARSING, > &exc); > > gdome_di_unref (domimpl, &exc); > gdome_doc_unref (doc, &exc); > ----------------------------------- > > I still have memory that I can't freed. I know that the problem had ever > being treated but I can't find it in the archives. > > Thank you for your help, > > Sylvain Cetre > _______________________________________________ > gdome mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gdome > -- John J. Boyer; Executive Director, Chief Software Developer Computers to Help People, Inc. http://www.chpi.org 825 East Johnson; Madison, WI 53703