camcordermmfplugin/filecomposer/Src/CamC3GPDataSinkImp.cpp
changeset 1 2d3e1993fb02
parent 0 9b3e960ffc8a
child 2 c7e61a0077eb
equal deleted inserted replaced
0:9b3e960ffc8a 1:2d3e1993fb02
    95 // -----------------------------------------------------------------------------
    95 // -----------------------------------------------------------------------------
    96 //
    96 //
    97 CCamC3GPDataSinkImp::~CCamC3GPDataSinkImp(void)
    97 CCamC3GPDataSinkImp::~CCamC3GPDataSinkImp(void)
    98     {
    98     {
    99     PRINT(_L("CCamC3GPDataSinkImp::~CCamC3GPDataSinkImp enter"));
    99     PRINT(_L("CCamC3GPDataSinkImp::~CCamC3GPDataSinkImp enter"));
   100     delete [] iVideoBuffer;
       
   101     delete [] iAudioBuffer;
       
   102 
   100 
   103     if ( iFileName != KNullDesC )
   101     if ( iFileName != KNullDesC )
   104         {
   102         {
   105         // we need to try to stop sink
   103         // we need to try to stop sink
   106         TInt error = KErrNone;
   104         TInt error = KErrNone;
   120         iFS->Close();
   118         iFS->Close();
   121         delete iFS;
   119         delete iFS;
   122         iFS = NULL;
   120         iFS = NULL;
   123         }
   121         }
   124 
   122 
       
   123     delete [] iVideoBuffer;
       
   124     delete [] iAudioBuffer;
   125     iObserver = NULL;
   125     iObserver = NULL;
   126     iMMFFile = NULL; // not owned
   126     iMMFFile = NULL; // not owned
   127     iFile = NULL; // not owned
   127     iFile = NULL; // not owned
   128 
   128 
   129     // Delete the CIdle async file remover object
   129     // Delete the CIdle async file remover object