Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
a80a1199
Commit
a80a1199
authored
Jun 01, 2024
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/asubprocess: free memory in uninit()
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
e5368cda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
af_asubprocess.c
libavfilter/af_asubprocess.c
+16
-0
No files found.
libavfilter/af_asubprocess.c
View file @
a80a1199
...
...
@@ -87,6 +87,17 @@ static SPB *spb_new(AVFilterContext *ctx)
return
spb
;
}
static
void
spb_free_all
(
SPB
**
spbp
)
{
SPB
*
spb
=
*
spbp
;
while
(
spb
)
{
SPB
*
to_free
=
spb
;
spb
=
spb
->
next
;
av_free
(
to_free
);
}
*
spbp
=
NULL
;
}
static
int
sp_new
(
AVFilterContext
*
ctx
)
{
...
...
@@ -399,6 +410,11 @@ static av_cold void uninit(AVFilterContext *ctx)
{
ASubProcessContext
*
s
=
ctx
->
priv
;
if
(
s
->
sp
)
{
spb_free_all
(
&
s
->
sp
->
unused_buffers
);
spb_free_all
(
&
s
->
sp
->
out_buffers
);
av_freep
(
&
s
->
sp
);
}
ff_framequeue_free
(
&
s
->
frame_queue
);
av_freep
(
&
s
->
sample_buffer
);
}
...
...
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