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

Commit 449b2392 authored by Raph Levien's avatar Raph Levien Committed by Android Git Automerger
Browse files

am 108df9db: am 6e3301dc: Merge "Fix bug 6558006: SystemUI native heap is...

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

* commit '108df9db':
  Fix bug 6558006: SystemUI native heap is huge. Fix memory leak
parents 904db5b4 108df9db
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();