Fix behaviour of freeNatives()

Summary:
@public

Prevents repeated deallocation of weak references.

Reviewed By: pasqualeanatriello

Differential Revision: D9131551

fbshipit-source-id: bc79596e056ae0657a55146ad786422fd0f5badc
This commit is contained in:
David Aurelio
2018-08-02 03:50:16 -07:00
committed by Facebook Github Bot
parent 0e99980206
commit 71f1d99494
3 changed files with 12 additions and 7 deletions

View File

@@ -384,7 +384,7 @@ jlong jni_YGNodeCloneNoProps(
return jni_YGNodeClone(cls, nativePointer, clonedJavaObject, nullptr);
}
void jni_YGNodeFree(alias_ref<jobject> thiz, jlong nativePointer) {
void jni_YGNodeFree(alias_ref<jclass> thiz, jlong nativePointer) {
if (nativePointer == 0) {
return;
}