shithub: aubio

Download patch

ref: 5210563159dca879feeb28ae22aad42df3f3af64
parent: 7daa8811896e8395aabc51fc5df1c87dea29699a
author: Paul Brossier <piem@piem.org>
date: Mon Oct 3 09:28:08 EDT 2016

src/io/source_sndfile.c: set handle to null after sucessful close

--- a/src/io/source_sndfile.c
+++ b/src/io/source_sndfile.c
@@ -318,6 +318,7 @@
     AUBIO_ERR("source_sndfile: Error closing file %s: %s\n", s->path, sf_strerror (NULL));
     return AUBIO_FAIL;
   }
+  s->handle = NULL;
   return AUBIO_OK;
 }