[vlc-commits] Return XML attribute as const from NextAttr
Rémi Denis-Courmont
git at videolan.org
Thu Jan 20 18:30:29 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 20 19:28:15 2011 +0200| [3dbfa99f14c8f0bf39db2ef02ddae5138edbae5f] | committer: Rémi Denis-Courmont
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3dbfa99f14c8f0bf39db2ef02ddae5138edbae5f
---
include/vlc_xml.h | 4 +-
modules/codec/subsusf.c | 287 +++++++++++++++----------------
modules/demux/playlist/b4s.c | 32 ++---
modules/demux/playlist/itml.c | 13 +-
modules/demux/playlist/podcast.c | 18 +-
modules/demux/playlist/qtl.c | 70 ++------
modules/demux/playlist/shoutcast.c | 41 ++---
modules/demux/playlist/xspf.c | 49 +++---
modules/demux/playlist/xspf.h | 3 +-
modules/gui/skins2/parser/xmlparser.cpp | 9 +-
modules/misc/lua/libs/xml.c | 2 +-
modules/misc/text_renderer.h | 88 +++++-----
modules/misc/xml/libxml.c | 9 +-
modules/video_filter/rss.c | 14 +-
14 files changed, 283 insertions(+), 356 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=3dbfa99f14c8f0bf39db2ef02ddae5138edbae5f
More information about the vlc-commits
mailing list