Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
fc03009e
Commit
fc03009e
authored
Dec 05, 2017
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subsdec: Fix memory leak
parent
589f9281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
modules/codec/subsdec.c
modules/codec/subsdec.c
+1
-0
No files found.
modules/codec/subsdec.c
View file @
fc03009e
...
...
@@ -1002,6 +1002,7 @@ static text_segment_t* ParseSubtitles( int *pi_align, const char *psz_subtitle )
else
if
(
psz_subtitle
[
1
]
==
'F'
||
psz_subtitle
[
1
]
==
'f'
)
{
p_segment
=
NewTextSegmentPushStyle
(
p_segment
,
&
p_stack
);
free
(
p_segment
->
style
->
psz_fontname
);
p_segment
->
style
->
psz_fontname
=
strndup
(
&
psz_subtitle
[
3
],
i_len
);
}
else
if
(
psz_subtitle
[
1
]
==
'S'
||
psz_subtitle
[
1
]
==
's'
)
...
...
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