diff -r 150a13bad6af -r 0802db42e4e9 webservices/wsframework/src/sensyncrequester.cpp --- a/webservices/wsframework/src/sensyncrequester.cpp Tue Jan 26 13:03:48 2010 +0200 +++ b/webservices/wsframework/src/sensyncrequester.cpp Sun May 30 23:54:06 2010 +0530 @@ -148,7 +148,11 @@ MSenProperties* /*aResponseTransportProperties*/) { // NONE of the errors between transport and session are handled in this level: - delete apError; + if(apError) + { + delete apError; + apError = NULL; + } return aErrorCode; // simply bounce the error back to the caller } @@ -176,7 +180,8 @@ } // Now stop the SYNC wait in the SubmitL, so that the main thread // of the Serene Core Active Scheduler can continue it's execution - iSchedulerWait.AsyncStop(); + if(iSchedulerWait.IsStarted()) + iSchedulerWait.AsyncStop(); return aTxnId; } @@ -195,7 +200,8 @@ } // Now stop the SYNC wait in the SubmitL, so that the main thread // of the Serene Core Active Scheduler can continue it's execution - iSchedulerWait.AsyncStop(); + if(iSchedulerWait.IsStarted()) + iSchedulerWait.AsyncStop(); return aTxnId; }