mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-02 06:58:17 +02:00
random bug fixes
This commit is contained in:
@ -60,7 +60,6 @@ dsp::VFO* SignalPath::addVFO(std::string name, double outSampleRate, double band
|
||||
if (vfos.find(name) != vfos.end()) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
VFO_t vfo;
|
||||
vfo.inputStream = new dsp::stream<dsp::complex_t>;
|
||||
split.bindStream(vfo.inputStream);
|
||||
@ -74,7 +73,6 @@ dsp::VFO* SignalPath::addVFO(std::string name, double outSampleRate, double band
|
||||
void SignalPath::removeVFO(std::string name) {
|
||||
if (vfos.find(name) == vfos.end()) {
|
||||
return;
|
||||
|
||||
}
|
||||
VFO_t vfo = vfos[name];
|
||||
vfo.vfo->stop();
|
||||
|
@ -80,8 +80,8 @@ void VFOManager::deleteVFO(VFOManager::VFO* vfo) {
|
||||
if (name == "") {
|
||||
return;
|
||||
}
|
||||
delete vfo;
|
||||
vfos.erase(name);
|
||||
delete vfo;
|
||||
}
|
||||
|
||||
void VFOManager::setOffset(std::string name, double offset) {
|
||||
|
Reference in New Issue
Block a user