--- a/telephonyprotocols/csdagt/src/ND_DIRCT.CPP Mon May 24 18:38:31 2010 +0100
+++ b/telephonyprotocols/csdagt/src/ND_DIRCT.CPP Tue Jun 22 11:02:32 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -23,7 +23,6 @@
#include "ND_SCR.H"
#include "ND_DBACC.H"
#include "ND_STD.H"
-#include "SLOGGER.H"
#include "ND_DIRECTSTATES.H"
CDirCtAgXSM* CDirCtAgXSM::NewL(MAgentNotify& aControllerObserver, CDialogProcessor* aDlgPrc, CCommsDbAccess& aDbAccess)
@@ -90,10 +89,18 @@
iDbAccess->GetCommPortRoleL(role);
TInt len;
iDbAccess->GetScriptDetailsL(iUseScript,len);
+
if (!iUseScript || len==0)
{ // set them consistently
iUseScript=EFalse;
}
+
+ if (iNdScript != NULL)
+ {
+ delete iNdScript;
+ iNdScript = NULL;
+ }
+
iNdScript=CNetDialScript::NewL(iDbAccess,iDlgPrc,commPort,role,len); // create it whatever because we need other stuff
}