Revision: 201037 RCL_3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 14:32:18 +0300
branchRCL_3
changeset 33 4cb0291370d0
parent 28 d59c248c9d36
child 34 453a466b0a43
Revision: 201037 Kit: 201041
ImagePrint/ImagePrintUI/imageprintapp/src/cimageprintappui.cpp
ImagePrint/ImagePrintUI/imageprinteng/src/cidleprinteventcatcher.cpp
--- a/ImagePrint/ImagePrintUI/imageprintapp/src/cimageprintappui.cpp	Wed Sep 01 12:30:38 2010 +0100
+++ b/ImagePrint/ImagePrintUI/imageprintapp/src/cimageprintappui.cpp	Wed Oct 13 14:32:18 2010 +0300
@@ -428,6 +428,11 @@
 		HBufC* buf = StringLoader::LoadLC( R_QTN_PRINT_SELECTNEW_NOTE );
 		errornote->ExecuteLD( *buf );
 		CleanupStack::PopAndDestroy( buf );
+		CleanupStack::PopAndDestroy(paramList);
+	    readStream.Close();
+	    readStream.Pop();
+	    CleanupStack::PopAndDestroy( &fileServer );
+	    delete imageFiles;
 		Exit();
     	}
 
--- a/ImagePrint/ImagePrintUI/imageprinteng/src/cidleprinteventcatcher.cpp	Wed Sep 01 12:30:38 2010 +0100
+++ b/ImagePrint/ImagePrintUI/imageprinteng/src/cidleprinteventcatcher.cpp	Wed Oct 13 14:32:18 2010 +0300
@@ -124,18 +124,16 @@
                     	CAknErrorNote* errornote = new CAknErrorNote( ETrue );  
 						TInt err ( KErrNone );
 		        		TRAP( err, errornote->ExecuteLD( *iBuf ));		        				        			
-											
+	                    if ( iBuf )
+	                        {
+	                        delete iBuf;
+	                        iBuf = NULL;
+	                        }											
                     	}
                     for( TInt i=0; i<obsCount; i++ )
                         {
                         iObservers[i]->UsbPrinterDisconnected();                    
-                        }
-                    if ( iBuf )
-                    	{
-                    	delete iBuf;
-                    	iBuf = NULL;
-                    	}
-                    
+                        }                    
                     }
                 }
             break;