Fix memory leak (thanks bepaald!)

This commit is contained in:
Chris Cannam
2015-07-08 19:23:41 +01:00
parent f57e65a881
commit dfdc1ad2e0

View File

@@ -1597,6 +1597,15 @@ public:
m_commonMutex.unlock();
#endif
}
#ifndef NO_THREADING
m_commonMutex.lock();
#endif
if (m_extantf <= 0 && m_extantd <= 0) {
fftw_cleanup();
}
#ifndef NO_THREADING
m_commonMutex.unlock();
#endif
}
FFT::Precisions