projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d9b03b
)
src/io/source_avcodec.c: make sure s->path is set to null
author
Paul Brossier
<piem@piem.org>
Sat, 17 Dec 2016 11:03:24 +0000
(12:03 +0100)
committer
Paul Brossier
<piem@piem.org>
Sat, 17 Dec 2016 11:03:24 +0000
(12:03 +0100)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
7d0a9b7
..
eae1cfc
100644
(file)
--- a/
src/io/source_avcodec.c
+++ b/
src/io/source_avcodec.c
@@
-531,8
+531,11
@@
void del_aubio_source_avcodec(aubio_source_avcodec_t * s){
if (s->avFrame != NULL) {
av_frame_free( &(s->avFrame) );
}
- if (s->path) AUBIO_FREE(s->path);
s->avFrame = NULL;
+ if (s->path) {
+ AUBIO_FREE(s->path);
+ }
+ s->path = NULL;
AUBIO_FREE(s);
}