Changeset 6564 in ntrip


Ignore:
Timestamp:
Jan 23, 2015, 4:58:21 PM (7 years ago)
Author:
stuerze
Message:

try to fix some memory problems

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r6556 r6564  
    238238      t_orbCorr orbCorr;
    239239      orbCorr._prn.set(sysCh, _clkOrb.Sat[ii].ID);
    240       orbCorr._staID     = _staID.toAscii().data();
     240      orbCorr._staID     = _staID.toStdString();
    241241      orbCorr._iod       = _clkOrb.Sat[ii].IOD;
    242242      orbCorr._time      = _lastTime;
     
    264264      t_clkCorr clkCorr;
    265265      clkCorr._prn.set(sysCh, _clkOrb.Sat[ii].ID);
    266       clkCorr._staID      = _staID.toAscii().data();
     266      clkCorr._staID      = _staID.toStdString();
    267267      clkCorr._time       = _lastTime;
    268268      clkCorr._updateInt  = _clkOrb.UpdateInterval;
     
    314314    t_satCodeBias satCodeBias;
    315315    satCodeBias._prn.set(sysCh, _codeBias.Sat[ii].ID);
    316     satCodeBias._staID     = _staID.toAscii().data();
     316    satCodeBias._staID     = _staID.toStdString();
    317317    satCodeBias._time      = _lastTime;
    318318    satCodeBias._updateInt = _codeBias.UpdateInterval;
     
    344344    t_satPhaseBias satPhaseBias;
    345345    satPhaseBias._prn.set(sysCh, _phaseBias.Sat[ii].ID);
    346     satPhaseBias._staID      = _staID.toAscii().data();
     346    satPhaseBias._staID      = _staID.toStdString();
    347347    satPhaseBias._time       = _lastTime;
    348348    satPhaseBias._updateInt  = _phaseBias.UpdateInterval;
     
    369369    _vTecMap[_lastTime]._time  = _lastTime;
    370370    _vTecMap[_lastTime]._updateInt =  _vTEC.UpdateInterval;
    371     _vTecMap[_lastTime]._staID = _staID.toAscii().data();
     371    _vTecMap[_lastTime]._staID = _staID.toStdString();
    372372    for (unsigned ii = 0; ii < _vTEC.NumLayers; ii++) {
    373373      const VTEC::IonoLayers& ionoLayer = _vTEC.Layers[ii];
  • trunk/BNC/src/bncephuser.cpp

    r6526 r6564  
    157157  }
    158158  else {
     159    delete newEph;
    159160    return failure;
    160161  }
Note: See TracChangeset for help on using the changeset viewer.