Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
bc7bf46f
Commit
bc7bf46f
authored
Aug 12, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: blurayInitTitles: fix memleaks on error paths
parent
b323c876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
modules/access/bluray.c
modules/access/bluray.c
+14
-7
No files found.
modules/access/bluray.c
View file @
bc7bf46f
...
...
@@ -1026,23 +1026,30 @@ static void blurayInitTitles(demux_t *p_demux )
break
;
BLURAY_TITLE_INFO
*
title_info
=
bd_get_title_info
(
p_sys
->
bluray
,
i
,
0
);
if
(
!
title_info
)
if
(
!
title_info
)
{
vlc_input_title_Delete
(
t
);
break
;
t
->
i_length
=
FROM_TICKS
(
title_info
->
duration
);
if
(
t
->
i_length
>
duration
)
{
duration
=
t
->
i_length
;
p_sys
->
i_longest_title
=
i
;
}
t
->
i_length
=
FROM_TICKS
(
title_info
->
duration
);
for
(
unsigned
int
j
=
0
;
j
<
title_info
->
chapter_count
;
j
++
)
{
seekpoint_t
*
s
=
vlc_seekpoint_New
();
if
(
!
s
)
if
(
!
s
)
{
bd_free_title_info
(
title_info
);
vlc_input_title_Delete
(
t
);
break
;
}
s
->
i_time_offset
=
title_info
->
chapters
[
j
].
offset
;
TAB_APPEND
(
t
->
i_seekpoint
,
t
->
seekpoint
,
s
);
}
if
(
t
->
i_length
>
duration
)
{
duration
=
t
->
i_length
;
p_sys
->
i_longest_title
=
i
;
}
TAB_APPEND
(
p_sys
->
i_title
,
p_sys
->
pp_title
,
t
);
bd_free_title_info
(
title_info
);
}
...
...
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