diff -r 7bc6ab9b5bcd -r 6abf3d6055cd webservices/wsframework/src/sensyncrequester.cpp --- a/webservices/wsframework/src/sensyncrequester.cpp Fri Feb 19 23:55:35 2010 +0200 +++ b/webservices/wsframework/src/sensyncrequester.cpp Mon Mar 15 12:44:52 2010 +0200 @@ -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; }