ImagePrint/ImagePrintUI/imageprinteng/src/cidleprinteventcatcher.cpp
branchRCL_3
changeset 33 4cb0291370d0
parent 0 d11fb78c4374
--- 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;