mmsharing/mmshui/src/musuisendcontroller.cpp
branchRCL_3
changeset 15 95754dcd27ad
parent 0 f0cf47e981f9
--- a/mmsharing/mmshui/src/musuisendcontroller.cpp	Tue May 11 16:10:30 2010 +0300
+++ b/mmsharing/mmshui/src/musuisendcontroller.cpp	Tue May 25 12:38:39 2010 +0300
@@ -53,6 +53,7 @@
     delete iAddress;
     delete iRemoteSipAddress;
     delete iRemoteSipAddressProposal;
+    TRAP_IGNORE( DeleteFileL() );  
     delete iVideoFileName;
     delete iLocalizer;
     
@@ -1032,7 +1033,24 @@
         }
     MUS_LOG( "mus: [MUSUI ]  <- CMusUiSendController::DeleteVideoL" );
     }   
-    
+
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+void CMusUiSendController::DeleteFileL()
+    {
+    MUS_LOG( "mus: [MUSUI ]  -> CMusUiSendController::DeleteFileL" );
+    if ( iVideoFileName && 
+    		MusUiFileUtil::FileExists( *iVideoFileName ) && !iVideoToBeSaved ) 
+		{
+        DeleteVideoL();
+		}
+    MUS_LOG( "mus: [MUSUI ]  <- CMusUiSendController::DeleteFileL" );
+    }   
+
+
 
 // -----------------------------------------------------------------------------
 //