projects/aports·blob master · refs

15 lines · 485 B

1--- a/modules/javafx.graphics/src/main/native-font/freetype.c
2+++ b/modules/javafx.graphics/src/main/native-font/freetype.c
3@@ -391,9 +391,11 @@
4 (JNIEnv *env, jclass that, jlong arg0, jobject arg1, jlong arg2, jlong arg3)
5 {
6 FT_Vector *lpDelta = NULL;
7+ FT_Vector tmp;
8 if (arg2 || arg3) {
9 FT_Vector vec = {arg2, arg3};
10- lpDelta = &vec;
11+ tmp = vec;
12+ lpDelta = &tmp;
13 }
14 if (arg1) {
15 FT_Matrix matrix, *lpMatrix = NULL;