src/spectral/phasevoc.c: abort if fft creation failed
[aubio.git] / src / spectral / phasevoc.c
index da3bfd1..e48e91a 100644 (file)
@@ -93,6 +93,9 @@ aubio_pvoc_t * new_aubio_pvoc (uint_t win_s, uint_t hop_s) {
   }
 
   pv->fft      = new_aubio_fft (win_s);
+  if (pv->fft == NULL) {
+    goto beach;
+  }
 
   /* remember old */
   pv->data     = new_fvec (win_s);