Fixing use-after-free resulting in heap corruption

This commit is contained in:
Eoin Mcloughlin
2016-10-09 19:15:29 +01:00
parent 45858cf001
commit 23490a0954
12 changed files with 22 additions and 24 deletions

View File

@@ -45,7 +45,7 @@ SpectrogramPlot::SpectrogramPlot(std::shared_ptr<SampleSource<std::complex<float
colormap[i] = QColor::fromHsvF(p * 0.83f, 1.0, 1.0 - p).rgba();
}
tunerTransform = std::make_shared<TunerTransform>(src.get());
tunerTransform = std::make_shared<TunerTransform>(src);
connect(&tuner, &Tuner::tunerMoved, this, &SpectrogramPlot::tunerMoved);
src->subscribe(this);
}