* commit '6b96ecca90555e04da8a4477d6dc6de83e7b9ee1': malloc some advances
This commit is contained in:
@ -554,7 +554,7 @@ public:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
jfloat advancesArray[count];
|
||||
jfloat* advancesArray = new jfloat[count];
|
||||
jfloat totalAdvance = 0;
|
||||
|
||||
TextLayout::getTextRunAdvances(paint, text, start, count, contextCount, flags,
|
||||
@ -563,6 +563,7 @@ public:
|
||||
if (advances != NULL) {
|
||||
env->SetFloatArrayRegion(advances, advancesIndex, count, advancesArray);
|
||||
}
|
||||
delete [] advancesArray;
|
||||
return totalAdvance;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user