Ticket #579: saocreatedestroypatch.patch

File saocreatedestroypatch.patch, 1.3 KB (added by gordon, 9 years ago)
  • TLibCommon/TComSampleAdaptiveOffset.cpp

     
    6363{
    6464  m_pClipTable = NULL;
    6565  m_pClipTableBase = NULL;
     66  m_iOffsetBo = NULL;
    6667  m_lumaTableBo = NULL;
    6768  m_iUpBuff1 = NULL;
    6869  m_iUpBuff2 = NULL;
     
    313314    delete[] m_lumaTableBo; m_lumaTableBo = NULL;
    314315  }
    315316
    316   m_iUpBuff1--;
    317   m_iUpBuff2--;
    318   m_iUpBufft--;
    319 
    320317  if (m_iUpBuff1)
    321318  {
     319    m_iUpBuff1--;
    322320    delete [] m_iUpBuff1; m_iUpBuff1 = NULL;
    323321  }
    324322  if (m_iUpBuff2)
    325323  {
     324    m_iUpBuff2--;
    326325    delete [] m_iUpBuff2; m_iUpBuff2 = NULL;
    327326  }
    328327  if (m_iUpBufft)
    329328  {
     329    m_iUpBufft--;
    330330    delete [] m_iUpBufft; m_iUpBufft = NULL;
    331331  }
    332332  if (m_pTmpL1)
  • TLibDecoder/TDecTop.cpp

     
    299299    sps->setAMPAcc( i, 0 );
    300300  }
    301301
     302  m_cSAO.destroy();
    302303  m_cSAO.create( sps->getPicWidthInLumaSamples(), sps->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth );
    303304  m_cLoopFilter.        create( g_uiMaxCUDepth );
    304305}