Revision: 201016 RCL_3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 11 May 2010 17:53:33 +0300
branchRCL_3
changeset 7 1799ab513ec3
parent 6 f7b2d24357ad
child 9 26914f8d1faf
Revision: 201016 Kit: 201019
charconvfw/numbergrouping/Src/NumberGrouping.cpp
fontservices/fontstore/inc/openfontlinkedtypefaceextension.h
fontservices/fontstore/inc/openfontlinkedtypefacespecification.h
textrendering/textformatting/test/tbandformat/src/helper/bandvalidator.cpp
--- a/charconvfw/numbergrouping/Src/NumberGrouping.cpp	Tue Apr 27 18:29:58 2010 +0300
+++ b/charconvfw/numbergrouping/Src/NumberGrouping.cpp	Tue May 11 17:53:33 2010 +0300
@@ -698,7 +698,7 @@
     RPointerArray<TDesC>& aGroupingPatternsList,
     TInt& aMaxExtraCharacters )
     {
-
+    CleanupResetAndDestroyPushL(aGroupingPatternsList);
     TPNGGroupingInfo* groupingInfo = new (ELeave) TPNGGroupingInfo;
     CleanupStack::PushL( groupingInfo );
 
@@ -762,7 +762,11 @@
         User::Leave(err);
         }
     else
+        {
         CleanupStack::Pop( groupingInfo ); // Success. This object now not owned by the cleanupstack
+        }        
+    
+    CleanupStack::Pop(&aGroupingPatternsList);
     }
 
 void CPNGNumberGrouping::ParseForAfterPositions(
--- a/fontservices/fontstore/inc/openfontlinkedtypefaceextension.h	Tue Apr 27 18:29:58 2010 +0300
+++ b/fontservices/fontstore/inc/openfontlinkedtypefaceextension.h	Tue May 11 17:53:33 2010 +0300
@@ -20,6 +20,8 @@
 #ifndef OPENFONTLINKEDTYPEFACEEXTENSION_H
 #define OPENFONTLINKEDTYPEFACEEXTENSION_H
 
+class COpenFontLinkedTypefaceSpecification;
+
 /**
 Interface for handling, creating and modifying linked typefaces.
 
--- a/fontservices/fontstore/inc/openfontlinkedtypefacespecification.h	Tue Apr 27 18:29:58 2010 +0300
+++ b/fontservices/fontstore/inc/openfontlinkedtypefacespecification.h	Tue May 11 17:53:33 2010 +0300
@@ -20,6 +20,10 @@
 #ifndef OPENFONTLINKEDTYPEFACESPECIFICATION_H_
 #define OPENFONTLINKEDTYPEFACESPECIFICATION_H_
 
+class COpenFontLinkedTypefaceElementSpec;
+class CLinkedTypefaceGroup;
+class TLinkedTypefaceSpecificationArgs;
+
 /**
 This class contains the specification of a linked typeface passed from font store to a rasterizer. It is made up of groups and typefaces.
 A group (CLinkedTypefaceGroup) contains a number of attributes that can apply to similar typefaces
--- a/textrendering/textformatting/test/tbandformat/src/helper/bandvalidator.cpp	Tue Apr 27 18:29:58 2010 +0300
+++ b/textrendering/textformatting/test/tbandformat/src/helper/bandvalidator.cpp	Tue May 11 17:53:33 2010 +0300
@@ -154,6 +154,7 @@
 	
 TBool CBandValidator::GetVisibleLineInfosL(const CTextView& aView, RArray<TTmLineInfo>& aVisibleLines)
 	{
+    CleanupClosePushL(aVisibleLines);
 	const CTextLayout* layout = aView.Layout();
 	__ASSERT_ALWAYS(layout, User::Invariant());
 	const CTmTextLayout& tmLayout = layout->TagmaTextLayout();
@@ -163,6 +164,7 @@
 	TTmLineInfo startLine;	
 	if(!(tmLayout.LineNumberToLine(firstLineNumber, startLine)))
 		{
+        CleanupStack::Pop(&aVisibleLines);
 		return EFalse;
 		}
 //get last visible line
@@ -179,11 +181,13 @@
 			//it is, so just get the last formatted line
 			if(!(tmLayout.LineNumberToLine((tmLayout.Lines())-1, endLine)))
 				{
+                CleanupStack::Pop(&aVisibleLines);
 				return EFalse;
 				}
 			}
 		else
 			{
+            CleanupStack::Pop(&aVisibleLines);
 			return EFalse;
 			}
 		}
@@ -196,11 +200,14 @@
 		TTmLineInfo lineInfo;
 		if(!(tmLayout.LineNumberToLine(lineNumber, lineInfo)))
 			{
+            CleanupStack::Pop(&aVisibleLines);
 			return EFalse;
 			}
 		User::LeaveIfError(aVisibleLines.Append(lineInfo));
 		lineNumber++;
 		}
+	
+	CleanupStack::Pop(&aVisibleLines);
 	return ETrue;	
 	}