projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1c3a99
)
[source_avcodec] prevent leak when closing swresample context
author
Paul Brossier
<piem@piem.org>
Mon, 31 Dec 2018 16:25:08 +0000
(17:25 +0100)
committer
Paul Brossier
<piem@piem.org>
Mon, 31 Dec 2018 16:25:08 +0000
(17:25 +0100)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
30f77cd
..
5b25d85
100644
(file)
--- a/
src/io/source_avcodec.c
+++ b/
src/io/source_avcodec.c
@@
-619,10
+619,11
@@
uint_t aubio_source_avcodec_close(aubio_source_avcodec_t * s) {
if (s->avr != NULL) {
#ifdef HAVE_AVRESAMPLE
avresample_close( s->avr );
+ av_free ( s->avr );
#elif defined(HAVE_SWRESAMPLE)
swr_close ( s->avr );
+ swr_free ( &s->avr );
#endif
- av_free ( s->avr );
}
s->avr = NULL;
if (s->avCodecCtx != NULL) {