Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
b856ec53
Commit
b856ec53
authored
Jun 04, 2011
by
Rémi Denis-Courmont
Browse files
XSPF: fix leak on colliding track ID
parent
6a4f9be6
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/playlist/xspf.c
View file @
b856ec53
...
...
@@ -445,6 +445,13 @@ static bool parse_track_node COMPLEX_INTERFACE
while
(
p_sys
->
i_track_id
>=
p_sys
->
i_tracklist_entries
)
pp
[
p_sys
->
i_tracklist_entries
++
]
=
NULL
;
}
else
if
(
p_sys
->
pp_tracklist
[
p_sys
->
i_track_id
]
!=
NULL
)
{
msg_Err
(
p_demux
,
"track ID %d collision"
,
p_sys
->
i_track_id
);
vlc_gc_decref
(
p_new_input
);
return
false
;
}
p_sys
->
pp_tracklist
[
p_sys
->
i_track_id
]
=
p_new_input
;
return
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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