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:
king6cong 2016-08-25 10:40:44 -07:00 committed by Facebook Github Bot 8
parent 11488d0338
commit 56dd520824
1 changed files with 1 additions and 2 deletions

View File

@ -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
// ownership of it, to HybridData which is managed by the java GC. The
// 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()));
}
@ -63,4 +63,3 @@ void HybridDataOnLoad() {
}
}}