syncmlfw/dm/treedbhandler/src/nsmldmdbhandler.cpp
changeset 66 08c8318ec9cb
parent 0 b497e44ab2fc
--- a/syncmlfw/dm/treedbhandler/src/nsmldmdbhandler.cpp	Fri Sep 03 22:35:56 2010 +0530
+++ b/syncmlfw/dm/treedbhandler/src/nsmldmdbhandler.cpp	Fri Sep 17 19:59:15 2010 +0530
@@ -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;
 		}