From 6db81656ac357937019fdd9754fd6e065c8f1150 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Thu, 11 May 2023 13:30:49 -0700 Subject: [PATCH] Make `jni_YGNodeDeallocateJNI` call `YGNodeDeallocate` Summary: X-link: https://github.com/facebook/react-native/pull/37388 Fixes https://github.com/facebook/yoga/issues/1271 Updating this glue was missed in D45556206 when moving from one revision to the other... Reviewed By: yungsters Differential Revision: D45780647 fbshipit-source-id: 4ca64bc9971d3e4697990e73b618a3dc91df259b --- java/jni/YGJNIVanilla.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(