Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Fixes for libxml strings: msg#00009

Subject: Fixes for libxml strings
Hello,

While debugging my code using glib, libxml and gdome, both compiled with 
memory pools disabled and in a garbage collector friendly way, I found that 
some Gdome functions misuse g_free() instead of xmlFree().

Main problem is using gdome_str_mkref_own() with libxml returned values. Since 
libxml have its own memory stuff it fails when using glib g_free(). I just 
replaced them with gdome_str_mkref_xml(), which will use xmlFree() instead of 
g_free().

Attached is the patch to fix issues I have encountered so far.

Both 0.8.1 and CVS have the same problem.

-- 
Gustavo Sverzut Barbieri
------------------------
Instituto Nokia de Tecnologia - INdT

Jabber: barbieri@xxxxxxxxx
   MSN: barbieri@xxxxxxxxx
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010
 Phone:  +1 (347) 624 6296; 08122692@xxxxxxxxxxxxxxxxxx
   GPG: 0xB640E1A2 @ wwwkeys.pgp.net

Attachment: gdome2-cvs-xmlFree.patch
Description: Text Data

Attachment: gdome2-0.8.1-xmlFree.patch
Description: Text Data

_______________________________________________
gdome mailing list
gdome@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gdome
<Prev in Thread] Current Thread [Next in Thread>