Ignore:
Timestamp:
Dec 7, 2015, 5:47:29 PM (9 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r7572 r7609  
    6060  _ephUser  = new bncEphUser(false);
    6161  _pppUtils = new t_pppUtils();
     62  _newEph = 0;
    6263}
    6364
     
    7172  delete _log;
    7273  delete _pppUtils;
     74  if (_newEph)
     75    delete _newEph;
    7376}
    7477
     
    292295    }
    293296  }
     297  else {
     298    delete satData;
     299  }
    294300}
    295301
     
    348354void t_pppClient::putEphemeris(const t_eph* eph) {
    349355  bool check = _opt->_realTime;
     356  if (_newEph)
     357    delete _newEph;
     358  _newEph = 0;
    350359  const t_ephGPS* ephGPS = dynamic_cast<const t_ephGPS*>(eph);
    351360  const t_ephGlo* ephGlo = dynamic_cast<const t_ephGlo*>(eph);
     
    353362  const t_ephBDS* ephBDS = dynamic_cast<const t_ephBDS*>(eph);
    354363  if      (ephGPS) {
    355     _ephUser->putNewEph(new t_ephGPS(*ephGPS), check);
     364    _newEph = new t_ephGPS(*ephGPS);
    356365  }
    357366  else if (ephGlo) {
    358     _ephUser->putNewEph(new t_ephGlo(*ephGlo), check);
     367    _newEph = new t_ephGlo(*ephGlo);
    359368  }
    360369  else if (ephGal) {
    361     _ephUser->putNewEph(new t_ephGal(*ephGal), check);
     370    _newEph = new t_ephGal(*ephGal);
    362371  }
    363372  else if (ephBDS) {
    364       _ephUser->putNewEph(new t_ephBDS(*ephBDS), check);
    365     }
     373    _newEph = new t_ephBDS(*ephBDS);
     374  }
     375
     376  if (_newEph) {
     377    _ephUser->putNewEph(_newEph, check);
     378  }
    366379}
    367380
Note: See TracChangeset for help on using the changeset viewer.