src/io/source_sndfile.c: set handle to null after sucessful close
authorPaul Brossier <piem@piem.org>
Mon, 3 Oct 2016 11:28:08 +0000 (13:28 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 3 Oct 2016 11:28:08 +0000 (13:28 +0200)
src/io/source_sndfile.c

index 6280de1..133a02f 100644 (file)
@@ -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;
 }