Ignore:
Timestamp:
15 Jul 2014, 02:16:04 (10 years ago)
Author:
seregin
Message:

picture memory release after output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r820 r831  
    12241224  for(Int i = 0; i < MAX_LAYERS; i++)
    12251225  {
    1226     m_acTDecTop[i].getListPic()->clear();
     1226    markAllPicturesAsErased(i);
    12271227  }
    12281228}
     
    12301230Void TAppDecTop::markAllPicturesAsErased(Int layerIdx)
    12311231{
     1232  TComList<TComPic*>::iterator  iterPic = m_acTDecTop[layerIdx].getListPic()->begin();
     1233  Int iSize = Int( m_acTDecTop[layerIdx].getListPic()->size() );
     1234 
     1235  for (Int i = 0; i < iSize; i++ )
     1236  {
     1237    TComPic* pcPic = *(iterPic++);
     1238
     1239    if( pcPic )
     1240    {
     1241      pcPic->destroy();
     1242
     1243      delete pcPic;
     1244      pcPic = NULL;
     1245    }
     1246  }
     1247
    12321248  m_acTDecTop[layerIdx].getListPic()->clear();
    12331249}
Note: See TracChangeset for help on using the changeset viewer.