fix typo
Summary: Closes https://github.com/facebook/react-native/pull/9588 Differential Revision: D3771663 Pulled By: hramos fbshipit-source-id: 7f2aaef44c2d168484f91040ec24cfe0b65c07e3
This commit is contained in:
parent
11488d0338
commit
56dd520824
|
@ -31,7 +31,7 @@ void HybridData::setNativePointer(std::unique_ptr<BaseHybridClass> new_value) {
|
||||||
// This releases ownership from the unique_ptr, and passes the pointer, and
|
// This releases ownership from the unique_ptr, and passes the pointer, and
|
||||||
// ownership of it, to HybridData which is managed by the java GC. The
|
// ownership of it, to HybridData which is managed by the java GC. The
|
||||||
// finalizer on hybridData calls resetNative which will delete the object, if
|
// finalizer on hybridData calls resetNative which will delete the object, if
|
||||||
// reseetNative has not already been called.
|
// resetNative has not already been called.
|
||||||
setFieldValue(pointerField, reinterpret_cast<jlong>(new_value.release()));
|
setFieldValue(pointerField, reinterpret_cast<jlong>(new_value.release()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,4 +63,3 @@ void HybridDataOnLoad() {
|
||||||
}
|
}
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue