diff -r 2af57effcf41 -r 0713fb089b10 applayerprotocols/httptransportfw/Test/TestScriptTest/CPipeliningTestEngine.cpp --- a/applayerprotocols/httptransportfw/Test/TestScriptTest/CPipeliningTestEngine.cpp Thu Jun 17 12:05:02 2010 +0100 +++ b/applayerprotocols/httptransportfw/Test/TestScriptTest/CPipeliningTestEngine.cpp Thu Jul 22 16:38:27 2010 +0100 @@ -538,7 +538,7 @@ iTestUtils->StartTestL( aTestCase.TestCaseName() ); __TESTNAME(aTestCase.TestCaseName()); - CPipeliningTestClient* testClient; + CPipeliningTestClient* testClient = NULL; if(aSecName.FindF(_L("TSWDEFECT")) ==0) { RDebug::Print(_L("TSWDEFECT")); @@ -546,6 +546,7 @@ if(aTestCase.TestCaseName().CompareF(KTestCaseLocalAndRemoteHost) == 0) { testClient = CTestCaseLocalAndRemoteHost::NewL(*iTestUtils, *this); + CleanupStack::PushL(testClient); } else { @@ -554,10 +555,10 @@ } else { - testClient = CPipeliningTestClient::NewL(*iTestUtils, *this); + testClient = CPipeliningTestClient::NewL(*iTestUtils, *this); + CleanupStack::PushL(testClient); } - CleanupStack::PushL(testClient); - + testClient->SetTestCase(&aTestCase); iTestServer->SetTestCase(&aTestCase); testClient->StartClientL();