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

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

am cfd46dc4: am 610d401c: am e9c7fd2f: am 55371beb: am 754bf6ab: am c8868db2:...

am cfd46dc4: am 610d401c: am e9c7fd2f: am 55371beb: am 754bf6ab: am c8868db2: am 737d3e5d: am 6b96ecca: am 32753f4f: am 31912122: am 6eb28103: am 183f97b7: am 1c12f9e7: malloc some advances

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

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