Mercurial > hg > svcore
diff data/model/FFTModel.cpp @ 383:94fc0591ea43 1.2-stable
* merge from trunk (1.2 ended up being tracked from trunk, but we may want
this branch for fixes later)
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 10:32:45 +0000 |
parents | aa8dbac62024 |
children |
line wrap: on
line diff
--- a/data/model/FFTModel.cpp Fri Nov 30 17:36:14 2007 +0000 +++ b/data/model/FFTModel.cpp Wed Feb 27 10:32:45 2008 +0000 @@ -82,6 +82,19 @@ if (m_server) FFTDataServer::releaseInstance(m_server); } +void +FFTModel::sourceModelAboutToBeDeleted() +{ + if (m_sourceModel) { + std::cerr << "FFTModel[" << this << "]::sourceModelAboutToBeDeleted(" << m_sourceModel << ")" << std::endl; + if (m_server) { + FFTDataServer::releaseInstance(m_server); + m_server = 0; + } + FFTDataServer::modelAboutToBeDeleted(m_sourceModel); + } +} + FFTDataServer * FFTModel::getServer(const DenseTimeValueModel *model, int channel,