comparison data/model/Dense3DModelPeakCache.cpp @ 1384:368449629a30

Fix various "model deleted with no aboutToDelete notification" warnings (and one associated potential memory leak)
author Chris Cannam
date Wed, 22 Feb 2017 12:01:39 +0000
parents f5f83fb49852
children 48e9f538e6e9
comparison
equal deleted inserted replaced
1383:f204f2fcb15e 1384:368449629a30
33 33
34 connect(source, SIGNAL(modelChanged()), 34 connect(source, SIGNAL(modelChanged()),
35 this, SLOT(sourceModelChanged())); 35 this, SLOT(sourceModelChanged()));
36 connect(source, SIGNAL(aboutToBeDeleted()), 36 connect(source, SIGNAL(aboutToBeDeleted()),
37 this, SLOT(sourceModelAboutToBeDeleted())); 37 this, SLOT(sourceModelAboutToBeDeleted()));
38
39 } 38 }
40 39
41 Dense3DModelPeakCache::~Dense3DModelPeakCache() 40 Dense3DModelPeakCache::~Dense3DModelPeakCache()
42 { 41 {
42 if (m_cache) m_cache->aboutToDelete();
43 delete m_cache; 43 delete m_cache;
44 } 44 }
45 45
46 Dense3DModelPeakCache::Column 46 Dense3DModelPeakCache::Column
47 Dense3DModelPeakCache::getColumn(int column) const 47 Dense3DModelPeakCache::getColumn(int column) const