diff options
author | Jussi Kukkonen <jku@goto.fi> | 2014-07-07 20:40:31 +0300 |
---|---|---|
committer | Jussi Kukkonen <jku@goto.fi> | 2014-07-07 20:57:25 +0300 |
commit | c15d2ad172e519d685adc2b23c93b8d298490ab4 (patch) | |
tree | 390d6fbee41100920dd5d3083b3db1a7b82ccb15 | |
parent | 83a2150b05f0ae4cb4fef3792a845989045c52eb (diff) | |
download | dleyna-renderer-c15d2ad172e519d685adc2b23c93b8d298490ab4.tar.gz |
[Device] Free dlna class strings after use
Ownership of strings in the GList that
gupnp_device_info_list_dlna_device_class_identifier () returns is
fully transferred since GUPnP 0.20.4. Free the strings after use.
Fixes #129.
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
-rw-r--r-- | libdleyna/renderer/device.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libdleyna/renderer/device.c b/libdleyna/renderer/device.c index e68cbc3..55a245f 100644 --- a/libdleyna/renderer/device.c +++ b/libdleyna/renderer/device.c @@ -1139,11 +1139,7 @@ static GVariant *prv_update_prop_dlna_device_classes(GUPnPDeviceInfo *proxy, g_hash_table_insert(props, DLR_INTERFACE_PROP_DLNA_DEVICE_CLASSES, retval); - /* TODO: We should actually be calling g_list_free_full here but the - strings in dlna_classes are allocated by libxml and not glib. So - until this is fixed we're stuck with this. */ - - g_list_free(dlna_classes); + g_list_free_full(dlna_classes, g_free); on_exit: |