--- a/applayerprotocols/httptransportfw/Test/TestScriptTest/CPipeliningTestEngine.cpp Thu May 27 13:21:53 2010 +0300
+++ b/applayerprotocols/httptransportfw/Test/TestScriptTest/CPipeliningTestEngine.cpp Fri Jun 11 14:06:05 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();