--- a/syncmlfw/dm/treedbhandler/src/nsmldmdbhandler.cpp Fri Sep 17 08:34:58 2010 +0300
+++ b/syncmlfw/dm/treedbhandler/src/nsmldmdbhandler.cpp Mon Oct 04 01:40:31 2010 +0300
@@ -884,7 +884,14 @@
childUriPtr.Append ( aURI );
childUriPtr.Append ( KNSmlDmLitSeparator );
childUriPtr.Append ( tmpDesc.Left ( segEnds ) );
- currentUris.Append ( childUri );
+
+ TRAPD(err, currentUris.AppendL ( childUri ));
+ if(err != KErrNone)
+ {
+ delete childUri;
+ User::Leave( err );
+ }
+
startPos += segEnds + 1;
}