shithub: aubio

Download patch

ref: c0d7cd6599bfe11061d4ff1478f6c015b659a3ce
parent: fff7b92ffe9dd9d37d27aaf681af8572588c735b
author: Paul Brossier <piem@piem.org>
date: Mon Jul 9 11:35:35 EDT 2012

examples/utils.c: avoid segfault when compiling without sndfile

--- a/examples/utils.c
+++ b/examples/utils.c
@@ -280,10 +280,11 @@
 void
 examples_common_del (void)
 {
-  uint_t i;
+#if HAVE_SNDFILE
   del_fvec (ibuf);
   del_fvec (obuf);
   del_fvec (woodblock);
+#endif
   aubio_cleanup ();
 }