# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1273589613 -10800 # Node ID 1799ab513ec3e3cf464ba9bfec3c38aac280bd17 # Parent f7b2d24357adb091b988aa1f2deccab7e1fe1911 Revision: 201016 Kit: 201019 diff -r f7b2d24357ad -r 1799ab513ec3 charconvfw/numbergrouping/Src/NumberGrouping.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& 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( diff -r f7b2d24357ad -r 1799ab513ec3 fontservices/fontstore/inc/openfontlinkedtypefaceextension.h --- 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. diff -r f7b2d24357ad -r 1799ab513ec3 fontservices/fontstore/inc/openfontlinkedtypefacespecification.h --- 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 diff -r f7b2d24357ad -r 1799ab513ec3 textrendering/textformatting/test/tbandformat/src/helper/bandvalidator.cpp --- 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& 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; }