Mercurial > hg > svcore
diff data/model/FFTModel.cpp @ 362:cc4eb32efc6c
* Further model lifecycle fixes
author | Chris Cannam |
---|---|
date | Thu, 24 Jan 2008 11:03:59 +0000 |
parents | ac300d385ab2 |
children | 7e1b7fcb6c00 |
line wrap: on
line diff
--- a/data/model/FFTModel.cpp Wed Jan 23 18:09:50 2008 +0000 +++ b/data/model/FFTModel.cpp Thu Jan 24 11:03:59 2008 +0000 @@ -86,6 +86,11 @@ 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); } }