Replace of gdome_xml_str_mkref_own() and gdome_xml_str_mkref() by gdome_xml_mkref_xml() has incorrect behaviour

[email protected] Tue, 11 Dec 2007 01:38:32 -0800
Newsgroups gmane.comp.gnome.gdome
Message-ID <[email protected]>
Hi all

 As a fix (Fixes for libxml strings) to avoid the misuse of g_free() by the gdome functions, the gdome_xml_str_mkref_own() and gdome_xml_str_mkref() were replaced by  gdome_xml_str_mkref_xml() to create a GdomeDOMString object for strings allocated by libxml in some xml functions like gdome_xml_el_getAttribute() gdome_xml_cd_appendData etc. But this causes segmentation faults as the gdome_xml_str_mkref_xml() do not make any copy of the string passed to it. And the gdome_xml_str_unref_xml()  frees the  memory by xmlFree(self->str) that is allocated by Libxml and this causes the problem when libxml again tries to free the same memory location.