Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
042c1938
Commit
042c1938
authored
Jul 15, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itml: fix dead initilisations and set the pointers to NULL only when needed.
parent
d80344c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/demux/playlist/itml.c
modules/demux/playlist/itml.c
+7
-5
No files found.
modules/demux/playlist/itml.c
View file @
042c1938
...
...
@@ -67,7 +67,7 @@ void Close_iTML( vlc_object_t *p_this )
*/
int
Demux
(
demux_t
*
p_demux
)
{
xml_t
*
p_xml
=
NULL
;
xml_t
*
p_xml
;
xml_reader_t
*
p_xml_reader
=
NULL
;
char
*
psz_name
=
NULL
;
...
...
@@ -237,7 +237,7 @@ static bool parse_dict( demux_t *p_demux, input_item_t *p_input_item,
case
XML_READER_TEXT
:
/* simple element content */
FREE_ATT
(
);
free
(
psz_value
);
psz_value
=
xml_ReaderValue
(
p_xml_reader
);
if
(
!
psz_value
)
{
...
...
@@ -292,7 +292,9 @@ static bool parse_dict( demux_t *p_demux, input_item_t *p_input_item,
msg_Err
(
p_demux
,
"unexpected end of xml data"
);
end:
FREE_ATT_KEY
();
free
(
psz_name
);
free
(
psz_value
);
free
(
psz_key
);
return
b_ret
;
}
...
...
@@ -346,7 +348,7 @@ static bool parse_track_dict( demux_t *p_demux, input_item_t *p_input_item,
{
VLC_UNUSED
(
psz_element
);
VLC_UNUSED
(
p_handlers
);
input_item_t
*
p_new_input
=
NULL
;
int
i_ret
=
-
1
;
int
i_ret
;
char
*
psz_uri
=
NULL
;
p_track
=
new_track
();
...
...
@@ -407,7 +409,7 @@ static bool parse_track_dict( demux_t *p_demux, input_item_t *p_input_item,
static
track_elem_t
*
new_track
()
{
track_elem_t
*
p_track
=
NULL
;
track_elem_t
*
p_track
;
p_track
=
malloc
(
sizeof
(
track_elem_t
)
);
if
(
p_track
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment