From b6bb2658491cd6591930e14b81b68eb1a3a19d02 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 17 Dec 2016 12:03:24 +0100 Subject: [PATCH] src/io/source_avcodec.c: make sure s->path is set to null --- src/io/source_avcodec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c index 7d0a9b77..eae1cfc5 100644 --- 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); } -- 2.11.0