create global ref properly in YogaJNIException

Summary:
##Changelog:
[Internal][Yoga] create global ref properly in YogaJNIException

Reviewed By: astreet

Differential Revision: D18775982

fbshipit-source-id: ee529d6178d40b5f887fa1327fe156fa466f154f
This commit is contained in:
Sidharth Guglani
2019-12-03 15:57:51 -08:00
committed by Facebook Github Bot
parent ac8eb111a9
commit 089095f532
3 changed files with 19 additions and 4 deletions

View File

@@ -69,6 +69,8 @@ callStaticObjectMethod(JNIEnv* env, jclass clazz, jmethodID methodId, ...);
* reference out of it. If any error happens, aborts the process.
*/
ScopedGlobalRef<jobject> newGlobalRef(JNIEnv* env, jobject obj);
ScopedGlobalRef<jthrowable> newGlobalRef(JNIEnv* env, jthrowable obj);
} // namespace vanillajni
} // namespace yoga
} // namespace facebook