Mercurial > hg > svcore
diff data/model/FFTModel.cpp @ 200:2f2d282d45d0
* Somewhat better handling of running out of memory or disc space
author | Chris Cannam |
---|---|
date | Mon, 13 Nov 2006 14:48:57 +0000 |
parents | 146eb9e35baa |
children | 29b70bdaacdc |
line wrap: on
line diff
--- a/data/model/FFTModel.cpp Fri Nov 10 17:45:26 2006 +0000 +++ b/data/model/FFTModel.cpp Mon Nov 13 14:48:57 2006 +0000 @@ -42,6 +42,8 @@ polar, fillFromColumn); + if (!m_server) return; // caller should check isOK() + size_t xratio = windowIncrement / m_server->getWindowIncrement(); size_t yratio = m_server->getFFTSize() / fftSize; @@ -71,7 +73,7 @@ FFTModel::~FFTModel() { - FFTDataServer::releaseInstance(m_server); + if (m_server) FFTDataServer::releaseInstance(m_server); } size_t