move YGSetLogger and YGConfigFree with global ref to vanilla jni
Summary: Move YGSetLogger and YGConfigFree methods to vanilla JNI Reviewed By: amir-shalem Differential Revision: D17754999 fbshipit-source-id: 8dfcf1a54e4d54ebf91e38c6513e6a703a40ae92
This commit is contained in:
committed by
Facebook Github Bot
parent
2ef674edd3
commit
d6591439d1
@@ -28,7 +28,10 @@ public class YogaConfigJNIFinalizer extends YogaConfigJNIBase {
|
||||
if (mNativePointer != 0) {
|
||||
long nativePointer = mNativePointer;
|
||||
mNativePointer = 0;
|
||||
YogaNative.jni_YGConfigFree(nativePointer);
|
||||
if (useVanillaJNI)
|
||||
YogaNative.jni_YGConfigFreeJNI(nativePointer);
|
||||
else
|
||||
YogaNative.jni_YGConfigFree(nativePointer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user