webservices/wsframework/src/saslmechanism.cpp
branchRCL_3
changeset 17 48e9d43c1d7f
parent 0 62f9d29f7211
--- a/webservices/wsframework/src/saslmechanism.cpp	Wed Apr 14 17:07:28 2010 +0300
+++ b/webservices/wsframework/src/saslmechanism.cpp	Tue Apr 27 17:46:55 2010 +0300
@@ -124,6 +124,11 @@
 EXPORT_C void CSaslMechanism::SetTransforms(
                         RPointerArray<CSenPasswordTransform> aList)
     {
+	//deallocate the original objects and the array itself which were owned
+	if(iTransforms.Count())
+		{
+		iTransforms.ResetAndDestroy();
+		}
     iTransforms = aList;
     }