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
fc94b7cf
Commit
fc94b7cf
authored
Oct 26, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential memleaks in src/video_output/vout_subpictures.c
parent
2e6d37ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+10
-5
No files found.
src/video_output/vout_subpictures.c
View file @
fc94b7cf
...
...
@@ -145,10 +145,13 @@ int spu_ParseChain( spu_t *p_spu )
if
(
p_spu
->
pp_filter
[
p_spu
->
i_filter
]
->
p_module
)
{
filter_owner_sys_t
*
p_sys
=
malloc
(
sizeof
(
filter_owner_sys_t
)
);
p_spu
->
pp_filter
[
p_spu
->
i_filter
]
->
p_owner
=
p_sys
;
spu_Control
(
p_spu
,
SPU_CHANNEL_REGISTER
,
&
p_sys
->
i_channel
);
p_sys
->
p_spu
=
p_spu
;
p_spu
->
i_filter
++
;
if
(
p_sys
)
{
p_spu
->
pp_filter
[
p_spu
->
i_filter
]
->
p_owner
=
p_sys
;
spu_Control
(
p_spu
,
SPU_CHANNEL_REGISTER
,
&
p_sys
->
i_channel
);
p_sys
->
p_spu
=
p_spu
;
p_spu
->
i_filter
++
;
}
}
else
{
...
...
@@ -325,6 +328,7 @@ subpicture_region_t *__spu_MakeRegion( vlc_object_t *p_this,
{
subpicture_region_t
*
p_region
=
malloc
(
sizeof
(
subpicture_region_t
)
);
(
void
)
p_this
;
if
(
!
p_region
)
return
NULL
;
memset
(
p_region
,
0
,
sizeof
(
subpicture_region_t
)
);
p_region
->
p_next
=
0
;
p_region
->
p_cache
=
0
;
...
...
@@ -1298,6 +1302,7 @@ static subpicture_t *spu_new_buffer( filter_t *p_filter )
{
subpicture_t
*
p_subpic
=
(
subpicture_t
*
)
malloc
(
sizeof
(
subpicture_t
));
(
void
)
p_filter
;
if
(
!
p_subpic
)
return
NULL
;
memset
(
p_subpic
,
0
,
sizeof
(
subpicture_t
)
);
p_subpic
->
b_absolute
=
VLC_TRUE
;
...
...
@@ -1323,7 +1328,7 @@ static void spu_del_buffer( filter_t *p_filter, subpicture_t *p_subpic )
static
picture_t
*
spu_new_video_buffer
(
filter_t
*
p_filter
)
{
picture_t
*
p_picture
=
malloc
(
sizeof
(
picture_t
)
);
if
(
!
p_picture
)
return
NULL
;
if
(
vout_AllocatePicture
(
p_filter
,
p_picture
,
p_filter
->
fmt_out
.
video
.
i_chroma
,
p_filter
->
fmt_out
.
video
.
i_width
,
...
...
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