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
f501157e
Commit
f501157e
authored
Jul 13, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3enc: fix memleak
parent
cdc5a3a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ac3enc.c
libavcodec/ac3enc.c
+4
-0
No files found.
libavcodec/ac3enc.c
View file @
f501157e
...
...
@@ -1820,6 +1820,8 @@ av_cold int ff_ac3_encode_close(AVCodecContext *avctx)
av_freep
(
&
s
->
band_psd_buffer
);
av_freep
(
&
s
->
mask_buffer
);
av_freep
(
&
s
->
qmant_buffer
);
av_freep
(
&
s
->
cpl_coord_exp_buffer
);
av_freep
(
&
s
->
cpl_coord_mant_buffer
);
for
(
blk
=
0
;
blk
<
AC3_MAX_BLOCKS
;
blk
++
)
{
AC3Block
*
block
=
&
s
->
blocks
[
blk
];
av_freep
(
&
block
->
mdct_coef
);
...
...
@@ -1830,6 +1832,8 @@ av_cold int ff_ac3_encode_close(AVCodecContext *avctx)
av_freep
(
&
block
->
band_psd
);
av_freep
(
&
block
->
mask
);
av_freep
(
&
block
->
qmant
);
av_freep
(
&
block
->
cpl_coord_exp
);
av_freep
(
&
block
->
cpl_coord_mant
);
}
s
->
mdct_end
(
s
->
mdct
);
...
...
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