Changeset 842 in SHVCSoftware


Ignore:
Timestamp:
26 Jul 2014, 00:50:06 (10 years ago)
Author:
seregin
Message:

memory release fix for AVC BL

Location:
branches/SHM-dev/source
Files:
2 edited

Legend:

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

    r831 r842  
    12411241      pcPic->destroy();
    12421242
    1243       delete pcPic;
    1244       pcPic = NULL;
     1243      // pcPic is statically created for the external (AVC) base layer, no need to delete it
     1244      if( !m_acTDecTop[layerIdx].getParameterSetManager()->getActiveVPS()->getAvcBaseLayerFlag() || layerIdx )
     1245      {
     1246        delete pcPic;
     1247        pcPic = NULL;
     1248      }
    12451249    }
    12461250  }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r841 r842  
    21142114      }
    21152115#endif
     2116
     2117      if( pcSubstreamsOut )
     2118      {
     2119        delete[] pcSubstreamsOut;
     2120        pcSubstreamsOut = NULL;
     2121      }
     2122
     2123      if( pcBitstreamRedirect )
     2124      {
     2125        delete pcBitstreamRedirect;
     2126        pcBitstreamRedirect = NULL;
     2127      }
     2128
    21162129      return;
    21172130    }
Note: See TracChangeset for help on using the changeset viewer.