From 92fc503d56923a127785cd99eb5213776b548a91 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` (#37388) Summary: Pull Request resolved: 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 --- .../src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp b/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp index b054ae0c7c9737..0a95d991976a8b 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp +++ b/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/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(