--- a/cryptoservices/certificateandkeymgmt/tx509/extensiontest.cpp Tue May 25 00:47:47 2010 +0530
+++ b/cryptoservices/certificateandkeymgmt/tx509/extensiontest.cpp Thu Jun 24 15:39:07 2010 +0530
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
@@ -135,8 +135,10 @@
// if it exists.
TPtrC str = Input::ParseElement(aBuf, aTag, pos, err);
if (err >= 0)
- {
- aStrings.Append(str.AllocL());
+ {
+ HBufC* string = str.AllocLC();
+ aStrings.AppendL(string);
+ CleanupStack::Pop(string);
}
}
while (err >= 0);
@@ -153,7 +155,9 @@
TInt n = Input::ParseIntElement(aBuf, aTag, pos, err);
if (err >= 0)
{
- aInts.Append(n);
+ // This append should not fail as the parsing went fine.
+ // So, ignoring the leave just to satisfy non leaving method convention.
+ TRAP_IGNORE(aInts.AppendL(n));
}
}
while (err >= 0);