Ignore:
Timestamp:
Dec 25, 2011, 7:27:03 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_LM/combination/bnccomb.cpp

    r3503 r3571  
    257257    delete _params[iPar-1];
    258258  }
    259   QVectorIterator<cmbCorr*> itCorr(corrs());
    260   while (itCorr.hasNext()) {
    261     delete itCorr.next();
     259  QListIterator<bncTime> itTime(_buffer.keys());
     260  while (itTime.hasNext()) {
     261    bncTime epoTime = itTime.next();
     262    _buffer.remove(epoTime);
    262263  }
    263264}
     
    355356  while (itCorr.hasNext()) {
    356357    cmbCorr* hlp = itCorr.next();
    357     if (hlp->prn == newCorr->prn && hlp->acName == newCorr->prn) {
     358    if (hlp->prn == newCorr->prn && hlp->acName == newCorr->acName) {
    358359      existingCorr = hlp;
    359360      break;
     
    875876      }
    876877      if (!foundMaster) {
     878        delete corr;
    877879        it.remove();
    878880      }
     
    973975    if (maxRes > _MAXRES) {
    974976      out << "  Outlier" << endl;
     977      delete corrs()[maxResIndex-1];
    975978      corrs().remove(maxResIndex-1);
    976979    }
     
    10101013    if      (_eph.find(prn) == _eph.end()) {
    10111014      out << "checkOrbit: missing eph (not found) " << corr->prn << endl;
     1015      delete corr;
    10121016      im.remove();
    10131017    }
    10141018    else if (corr->eph == 0) {
    10151019      out << "checkOrbit: missing eph (zero) " << corr->prn << endl;
     1020      delete corr;
    10161021      im.remove();
    10171022    }
     
    10221027      else {
    10231028        out << "checkOrbit: missing eph (deleted) " << corr->prn << endl;
     1029        delete corr;
    10241030        im.remove();
    10251031      }
     
    10861092      QString  prn  = corr->prn;
    10871093      if      (numCorr[prn] < 2) {
     1094        delete corr;
    10881095        im.remove();
    10891096      }
     
    10981105              << corr->iod                     << " "
    10991106              << norm                          << endl;
     1107          delete corr;
    11001108          im.remove();
    11011109          removed = true;
Note: See TracChangeset for help on using the changeset viewer.