Changeset 2275


Ignore:
Timestamp:
01/03/22 14:09:22 (2 years ago)
Author:
jderouillat
Message:

Do not free buffers in CContext::finalize, yet done deleting CEventServer

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/context_client.cpp

    r2260 r2275  
    369369   void CContextClient::releaseBuffers() 
    370370   { 
    371       map<int,CClientBuffer*>::iterator itBuff; 
    372       for (itBuff = buffers.begin(); itBuff != buffers.end(); itBuff++) 
    373       { 
    374          delete itBuff->second; 
    375       } 
    376       buffers.clear(); 
     371      //map<int,CClientBuffer*>::iterator itBuff; 
     372      //for (itBuff = buffers.begin(); itBuff != buffers.end(); itBuff++) 
     373      //{ 
     374      //   delete itBuff->second; 
     375      //} 
     376      //buffers.clear(); 
    377377 
    378378// don't know when release windows 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/context_server.cpp

    r2273 r2275  
    411411  void CContextServer::releaseBuffers() 
    412412  { 
    413     for(auto it=buffers.begin();it!=buffers.end();++it) delete it->second ; 
    414     buffers.clear() ;  
     413    //for(auto it=buffers.begin();it!=buffers.end();++it) delete it->second ; 
     414    //buffers.clear() ;  
    415415    freeWindows() ; 
    416416  } 
Note: See TracChangeset for help on using the changeset viewer.