X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flogical-model-impl.cpp;h=3d9440e6ff73e2616aa6a60f6dc67e3b310a4761;hp=6fbabb1b4221c140414289ef9f656805935a814a;hb=d48e9b8b161367ad699c0352dfeb0128832bbe59;hpb=d82494a77e405d5924cf1af3fe55b2d9b9577e3f diff --git a/dali-toolkit/internal/text/logical-model-impl.cpp b/dali-toolkit/internal/text/logical-model-impl.cpp index 6fbabb1..3d9440e 100755 --- a/dali-toolkit/internal/text/logical-model-impl.cpp +++ b/dali-toolkit/internal/text/logical-model-impl.cpp @@ -38,7 +38,7 @@ void FreeFontFamilyNames( Vector& fontDescriptionRuns ) it != endIt; ++it ) { - delete (*it).familyName; + delete[] (*it).familyName; } fontDescriptionRuns.Clear(); @@ -289,6 +289,14 @@ void LogicalModel::UpdateTextStyleRuns( CharacterIndex index, int numberOfCharac mColorRuns, removedColorRuns ); + // Process the background color runs. + Vector removedBackgroundColorRuns; + UpdateCharacterRuns( index, + numberOfCharacters, + totalNumberOfCharacters, + mBackgroundColorRuns, + removedBackgroundColorRuns ); + // Process the font description runs. Vector removedFontDescriptionRuns; UpdateCharacterRuns( index,