diff -r d59c248c9d36 -r 4cb0291370d0 ImagePrint/ImagePrintUI/imageprinteng/src/cidleprinteventcatcher.cpp --- 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; iUsbPrinterDisconnected(); - } - if ( iBuf ) - { - delete iBuf; - iBuf = NULL; - } - + } } } break;