Changeset 121 in 3DVCSoftware for trunk/source/Lib/TLibRenderer


Ignore:
Timestamp:
6 Sep 2012, 18:12:56 (12 years ago)
Author:
tech
Message:

Fixed several memory leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibRenderer/TRenSingleModel.cpp

    r100 r121  
    9999  if ( m_pcInputSamples [0] ) delete[] m_pcInputSamples [0];
    100100  if ( m_pcInputSamples [1] ) delete[] m_pcInputSamples [1];
     101
     102#if FIX_MEM_LEAKS
     103  if ( m_pcOutputSamples    ) delete[] m_pcOutputSamples   ;
     104#else
    101105  if ( m_pcOutputSamples    ) delete   m_pcOutputSamples   ;
     106#endif
     107
     108#if FIX_MEM_LEAKS
     109  if ( m_piInvZLUTLeft  ) delete[] m_piInvZLUTLeft ;
     110  if ( m_piInvZLUTRight ) delete[] m_piInvZLUTRight;
     111
     112  if ( m_aapiRefVideoPel[0] ) delete[] ( m_aapiRefVideoPel[0] - ( m_aiRefVideoStrides[0] * m_iPad + m_iPad ) );
     113  if ( m_aapiRefVideoPel[1] ) delete[] ( m_aapiRefVideoPel[1] - ( m_aiRefVideoStrides[1] * m_iPad + m_iPad ) );
     114  if ( m_aapiRefVideoPel[2] ) delete[] ( m_aapiRefVideoPel[2] - ( m_aiRefVideoStrides[2] * m_iPad + m_iPad ) );
     115#endif
    102116}
    103117
Note: See TracChangeset for help on using the changeset viewer.