ref: b6bb2658491cd6591930e14b81b68eb1a3a19d02
parent: 5d9b03b2daae67851b0d34c26e56d5e2f219aefe
author: Paul Brossier <piem@piem.org>
date: Sat Dec 17 07:03:24 EST 2016
src/io/source_avcodec.c: make sure s->path is set to null
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -531,8 +531,11 @@
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);
}
--
⑨