[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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

Attachment: pgpakaWA5e1XY.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]