diff --git a/java/jni/YGJNIVanilla.cpp b/java/jni/YGJNIVanilla.cpp index b054ae0c7c..0a95d99197 100644 --- a/java/jni/YGJNIVanilla.cpp +++ b/java/jni/YGJNIVanilla.cpp @@ -210,7 +210,7 @@ static void jni_YGNodeDeallocateJNI( return; } const YGNodeRef node = _jlong2YGNodeRef(nativePointer); - YGNodeFree(node); + YGNodeDeallocate(node); } static void jni_YGNodeResetJNI(