tests/src/io/test-source_multi.c: del fmat only when need be
authorPaul Brossier <piem@piem.org>
Fri, 22 Mar 2013 18:18:18 +0000 (13:18 -0500)
committerPaul Brossier <piem@piem.org>
Fri, 22 Mar 2013 18:18:18 +0000 (13:18 -0500)
tests/src/io/test-source_multi.c

index a1a72ec..9a7e266 100644 (file)
@@ -43,9 +43,9 @@ int main (int argc, char **argv)
   PRINT_MSG("read %d frames at %dHz (%d blocks) from %s\n", n_frames, samplerate,
     n_frames / hop_size, source_path);
 
   PRINT_MSG("read %d frames at %dHz (%d blocks) from %s\n", n_frames, samplerate,
     n_frames / hop_size, source_path);
 
+  del_fmat (mat);
   del_aubio_source (s);
 beach:
   del_aubio_source (s);
 beach:
-  del_fmat (mat);
 
   return err;
 }
 
   return err;
 }