Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3488e097
Commit
3488e097
authored
Oct 17, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_random: fix memory leaks
Fixes #8296
parent
fb7b222b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
vf_random.c
libavfilter/vf_random.c
+9
-0
No files found.
libavfilter/vf_random.c
View file @
3488e097
...
...
@@ -113,6 +113,14 @@ next:
return
ret
;
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
RandomContext
*
s
=
ctx
->
priv
;
for
(
int
i
=
0
;
i
<
s
->
nb_frames
;
i
++
)
av_frame_free
(
&
s
->
frames
[
i
]);
}
static
const
AVFilterPad
random_inputs
[]
=
{
{
.
name
=
"default"
,
...
...
@@ -137,6 +145,7 @@ AVFilter ff_vf_random = {
.
priv_size
=
sizeof
(
RandomContext
),
.
priv_class
=
&
random_class
,
.
init
=
init
,
.
uninit
=
uninit
,
.
inputs
=
random_inputs
,
.
outputs
=
random_outputs
,
};
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