--- a/applayerprotocols/httptransportfw/Test/TestScriptTest/CPipeliningTestEngine.cpp Tue May 11 16:43:01 2010 +0300
+++ b/applayerprotocols/httptransportfw/Test/TestScriptTest/CPipeliningTestEngine.cpp Tue May 25 13:17:20 2010 +0300
@@ -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();