Return XML attribute as const from NextAttr
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 20 Jan 2011 17:28:15 +0000 (19:28 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 20 Jan 2011 17:28:15 +0000 (19:28 +0200)
commit3dbfa99f14c8f0bf39db2ef02ddae5138edbae5f
treef7f4809534d3a58ccb4462eb1e23530c5b853682
parent4bea014b5659bb43b32619512276b01d70deed92
Return XML attribute as const from NextAttr

The attribute name is valid until the next attribute or next node.
This simplifies the code a bit: fewer error paths, and free() calls.

A few potential memory leaks were fixed too.
14 files changed:
include/vlc_xml.h
modules/codec/subsusf.c
modules/demux/playlist/b4s.c
modules/demux/playlist/itml.c
modules/demux/playlist/podcast.c
modules/demux/playlist/qtl.c
modules/demux/playlist/shoutcast.c
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.h
modules/gui/skins2/parser/xmlparser.cpp
modules/misc/lua/libs/xml.c
modules/misc/text_renderer.h
modules/misc/xml/libxml.c
modules/video_filter/rss.c