From 5210563159dca879feeb28ae22aad42df3f3af64 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 3 Oct 2016 13:28:08 +0200 Subject: [PATCH] src/io/source_sndfile.c: set handle to null after sucessful close --- src/io/source_sndfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io/source_sndfile.c b/src/io/source_sndfile.c index 6280de11..133a02f1 100644 --- a/src/io/source_sndfile.c +++ b/src/io/source_sndfile.c @@ -318,6 +318,7 @@ uint_t aubio_source_sndfile_close (aubio_source_sndfile_t *s) { AUBIO_ERR("source_sndfile: Error closing file %s: %s\n", s->path, sf_strerror (NULL)); return AUBIO_FAIL; } + s->handle = NULL; return AUBIO_OK; } -- 2.11.0