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
f04dfb86
Commit
f04dfb86
authored
May 20, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec/avcodec/vaapi*: fix potential subpictures memleak
parent
309ce1a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vaapi.c
+3
-0
modules/codec/avcodec/vaapi_x11.c
modules/codec/avcodec/vaapi_x11.c
+2
-0
No files found.
modules/codec/avcodec/vaapi.c
View file @
f04dfb86
...
...
@@ -403,6 +403,9 @@ static vlc_va_surface_t *FindSurface( vlc_va_t *p_external, const VASurfaceID i_
*/
p_tmp
->
i_refcount
++
;
p_surface
=
p_tmp
;
free
(
p_surface
->
subpicture
);
p_surface
->
subpicture
=
NULL
;
p_surface
->
i_sub
=
0
;
vlc_mutex_unlock
(
&
p_tmp
->
lock
);
break
;
}
...
...
modules/codec/avcodec/vaapi_x11.c
View file @
f04dfb86
...
...
@@ -580,6 +580,8 @@ static int RenderDirectSubpicture(vout_display_t *vd, picture_t *picture, subpic
{
vout_display_sys_t
*
sys
=
vd
->
sys
;
assert
(
picture
->
p_sys
->
surface
->
subpicture
==
NULL
);
vlc_va_subpicture_t
*
vasubpic
=
(
vlc_va_subpicture_t
*
)
calloc
(
i_region
,
sizeof
(
vlc_va_subpicture_t
));
if
(
!
vasubpic
)
return
VLC_EGENERIC
;
...
...
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