[libvirt] [libvirt-glib 1/6] Getters for GVirConfigDomainInterface attributes

Christophe Fergeau cfergeau at redhat.com
Wed Feb 29 15:41:44 UTC 2012


On Wed, Feb 29, 2012 at 05:26:58PM +0200, Zeeshan Ali (Khattak) wrote:
> There wont' be any need for freeing if
> gvir_config_xml_get_child_element_content() and similar functions
> returned chid_node->content rather than  xmlNodeGetContent
> (child_node). That way you never need to free any string. The original
> gupnp-av code that you based this xml utils code on, does exactly
> that. I wonder why you changed it?

I didn't copy and paste the code nor look at it that closely.
Since libxml2 has public getters which seem to be doing complicated things,
it felt safer to use them :)

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120229/0e45c793/attachment-0001.sig>


More information about the libvir-list mailing list