Changeset 121 in 3DVCSoftware for trunk/source/App/TAppEncoder


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

Fixed several memory leaks.

Location:
trunk/source/App/TAppEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/App/TAppEncoder/TAppEncCfg.cpp

    r120 r121  
    120120#endif
    121121
     122#if FIX_MEM_LEAKS
     123 if ( m_pchCameraParameterFile != NULL )
     124   free ( m_pchCameraParameterFile );
     125
     126 if ( m_pchBaseViewCameraNumbers != NULL )
     127   free ( m_pchBaseViewCameraNumbers );
     128
     129 if ( m_pchdQPFile      != NULL )
     130   free ( m_pchdQPFile      );
     131
     132 if ( m_pchColumnWidth  != NULL )
     133   free ( m_pchColumnWidth  );
     134
     135 if ( m_pchRowHeight    != NULL )
     136   free ( m_pchRowHeight    );
     137
     138 if ( m_scalingListFile != NULL )
     139   free ( m_scalingListFile );
     140
     141#endif   
     142
    122143}
    123144
     
    228249  ("FrameSkip,-fs",         m_FrameSkip,         0u, "Number of frames to skip at start of input YUV")
    229250  ("FramesToBeEncoded,f",   m_iFrameToBeEncoded, 0, "number of frames to be encoded (default=all)")
    230   ("FrameToBeEncoded",      m_iFrameToBeEncoded, 0, "depricated alias of FramesToBeEncoded")
     251  ("FrameToBeEncoded",        m_iFrameToBeEncoded, 0, "deprecated alias of FramesToBeEncoded")
    231252 
    232253  ("NumberOfViews",         m_iNumberOfViews,    0, "Number of views")
  • trunk/source/App/TAppEncoder/TAppEncTop.cpp

    r120 r121  
    10001000  pcDepthPicYuvOrg = NULL;
    10011001 
     1002#if FIX_MEM_LEAKS
     1003  if ( pcPdmDepthOrg != NULL )
     1004  {
     1005    pcPdmDepthOrg->destroy();
     1006    delete pcPdmDepthOrg;     
     1007    pcPdmDepthOrg = NULL;
     1008  };
     1009#endif
     1010
     1011 
    10021012  for(Int iViewIdx=0; iViewIdx < m_iNumberOfViews; iViewIdx++ )
    10031013  {
Note: See TracChangeset for help on using the changeset viewer.