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

Commit 183f97b7 authored by Victoria Lease's avatar Victoria Lease Committed by Android Git Automerger
Browse files

am 1c12f9e7: malloc some advances

* commit '1c12f9e7':
  malloc some advances
parents da37ed8b 1c12f9e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -512,7 +512,7 @@ public:
                return 0;
            }
        }
        jfloat advancesArray[count];
        jfloat* advancesArray = new jfloat[count];
        jfloat totalAdvance = 0;

        TextLayout::getTextRunAdvances(paint, text, start, count, contextCount, flags,
@@ -521,6 +521,7 @@ public:
        if (advances != NULL) {
            env->SetFloatArrayRegion(advances, advancesIndex, count, advancesArray);
        }
        delete [] advancesArray;
        return totalAdvance;
    }