Mercurial > hg > svcore
comparison data/model/FFTModel.cpp @ 360:ac300d385ab2
* Various fixes to object lifetime management, particularly in the spectrum
layer and for notification of main model deletion.
The main purpose of this is to improve the behaviour of the spectrum, but I
think it may also help with #1840922 Various crashes in Layer Summary window.
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2008 15:43:27 +0000 |
parents | aa8dbac62024 |
children | cc4eb32efc6c |
comparison
equal
deleted
inserted
replaced
359:824ee993ca8d | 360:ac300d385ab2 |
---|---|
78 } | 78 } |
79 | 79 |
80 FFTModel::~FFTModel() | 80 FFTModel::~FFTModel() |
81 { | 81 { |
82 if (m_server) FFTDataServer::releaseInstance(m_server); | 82 if (m_server) FFTDataServer::releaseInstance(m_server); |
83 } | |
84 | |
85 void | |
86 FFTModel::sourceModelAboutToBeDeleted() | |
87 { | |
88 if (m_sourceModel) { | |
89 FFTDataServer::modelAboutToBeDeleted(m_sourceModel); | |
90 } | |
83 } | 91 } |
84 | 92 |
85 FFTDataServer * | 93 FFTDataServer * |
86 FFTModel::getServer(const DenseTimeValueModel *model, | 94 FFTModel::getServer(const DenseTimeValueModel *model, |
87 int channel, | 95 int channel, |