From: Paul Brossier Date: Mon, 3 Oct 2016 11:28:08 +0000 (+0200) Subject: src/io/source_sndfile.c: set handle to null after sucessful close X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=d5745afb91366399d79790ae89a006104a087294;p=aubio.git src/io/source_sndfile.c: set handle to null after sucessful close --- 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; }