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
d8f026b7
Commit
d8f026b7
authored
Jul 18, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* subtitle: fixed a small memleak.
parent
52500c68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/demux/subtitle.c
modules/demux/subtitle.c
+7
-1
No files found.
modules/demux/subtitle.c
View file @
d8f026b7
...
...
@@ -232,7 +232,7 @@ static int Open ( vlc_object_t *p_this )
if
(
p_sys
->
i_type
==
SUB_TYPE_UNKNOWN
)
{
int
i_try
;
char
*
s
;
char
*
s
=
NULL
;
msg_Dbg
(
p_demux
,
"autodetecting subtitle format"
);
for
(
i_try
=
0
;
i_try
<
256
;
i_try
++
)
...
...
@@ -301,8 +301,13 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
i_type
=
SUB_TYPE_VOBSUB
;
break
;
}
free
(
s
);
s
=
NULL
;
}
if
(
s
)
free
(
s
);
/* It will nearly always work even for non seekable stream thanks the
* caching system, and if it fails we loose just a few sub */
if
(
stream_Seek
(
p_demux
->
s
,
0
)
)
...
...
@@ -464,6 +469,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
p_sys
->
i_subtitle
++
;
}
if
(
p_sys
->
i_subtitle
>=
p_sys
->
i_subtitles
)
return
VLC_EGENERIC
;
return
VLC_SUCCESS
;
...
...
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