Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e858da02
Commit
e858da02
authored
Nov 18, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fix a memory leak (p_block should be unallocated).
parent
0615d81b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
modules/codec/subsdec.c
modules/codec/subsdec.c
+10
-2
No files found.
modules/codec/subsdec.c
View file @
e858da02
...
...
@@ -2,7 +2,7 @@
* subsdec.c : text subtitles decoder
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: subsdec.c,v 1.
8 2003/11/18 23:25:38 sigmunau
Exp $
* $Id: subsdec.c,v 1.
9 2003/11/18 23:58:10 fenrir
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -191,6 +191,11 @@ static void DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
vout_thread_t
*
p_vout
;
if
(
!
pp_block
||
*
pp_block
==
NULL
)
{
return
;
}
/* Here we are dealing with text subtitles */
p_vout
=
vlc_object_find
(
p_dec
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
!
p_vout
)
...
...
@@ -200,6 +205,9 @@ static void DecodeBlock( decoder_t *p_dec, block_t **pp_block )
ParseText
(
p_dec
,
*
pp_block
,
p_vout
);
vlc_object_release
(
p_vout
);
block_Release
(
*
pp_block
);
*
pp_block
=
NULL
;
}
/*****************************************************************************
...
...
@@ -276,7 +284,7 @@ static void ParseText( decoder_t *p_dec, block_t *p_block,
{
char
*
psz_new_subtitle
;
char
*
psz_convert_buffer_out
;
c
onst
c
har
*
psz_convert_buffer_in
;
char
*
psz_convert_buffer_in
;
size_t
ret
,
inbytes_left
,
outbytes_left
;
psz_new_subtitle
=
malloc
(
6
*
strlen
(
psz_subtitle
)
);
...
...
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