X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flogical-model-impl.cpp;h=12929fcedd24e3da888f911c88380cac0a77bb45;hb=c857a82d2a092fe17e654baf70afd454143310de;hp=8ecab1fa04c22e356f3550f5e64695fbd55e3cc4;hpb=f2039d47f9bed8104575da80a2ecf0bb6e37ff8d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/logical-model-impl.cpp b/dali-toolkit/internal/text/logical-model-impl.cpp index 8ecab1f..12929fc 100644 --- a/dali-toolkit/internal/text/logical-model-impl.cpp +++ b/dali-toolkit/internal/text/logical-model-impl.cpp @@ -55,6 +55,16 @@ void FreeEmbeddedItems(Vector& embeddedItem) embeddedItem.Clear(); } +void FreeAnchors(Vector& anchors) +{ + for(auto&& anchor : anchors) + { + delete[] anchor.href; + } + + anchors.Clear(); +} + LogicalModelPtr LogicalModel::New() { return LogicalModelPtr(new LogicalModel()); @@ -573,6 +583,11 @@ void LogicalModel::ClearEmbeddedImages() FreeEmbeddedItems(mEmbeddedItems); } +void LogicalModel::ClearAnchors() +{ + FreeAnchors(mAnchors); +} + LogicalModel::~LogicalModel() { ClearFontDescriptionRuns();