Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 108df9db authored by Raph Levien's avatar Raph Levien Committed by Android Git Automerger
Browse files

am 6e3301dc: Merge "Fix bug 6558006: SystemUI native heap is huge. Fix memory leak" into jb-dev

* commit '6e3301dc':
  Fix bug 6558006: SystemUI native heap is huge. Fix memory leak
parents f3873333 6e3301dc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -992,6 +992,10 @@ HB_Face TextLayoutShaper::getCachedHBFace(SkTypeface* typeface) {
}

void TextLayoutShaper::purgeCaches() {
    size_t cacheSize = mCachedHBFaces.size();
    for (size_t i = 0; i < cacheSize; i++) {
        HB_FreeFace(mCachedHBFaces.valueAt(i));
    }
    mCachedHBFaces.clear();
    unrefTypefaces();
    init();