Changeset 7904 in ntrip for trunk


Ignore:
Timestamp:
May 13, 2016, 11:21:40 AM (8 years ago)
Author:
stuerze
Message:

memeory leak fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppClient.cpp

    r7888 r7904  
    309309      if (fabs(maxRes) > 1000.0) {
    310310        LOG << "t_pppClient::cmpOffGG outlier " << maxResPrn.toString() << " " << maxRes << endl;
     311        delete obsVector.at(maxResIndex);
    311312        obsVector.erase(obsVector.begin() + maxResIndex);
    312313      }
     
    450451
    451452    _offGG = cmpOffGG(_obsRover);
     453
     454    if (int(_obsRover.size()) < OPT->_minObs) {
     455      LOG << "t_pppClient::processEpoch not enough observations" << endl;
     456      return finish(failure);
     457    }
    452458
    453459    // Store last epoch of data
Note: See TracChangeset for help on using the changeset viewer.