This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with JNI Env not available for audio (#182)
Summary: Pull Request resolved: #182 The Hermes GC will eventually clean up orphan host objects. This is also the case for `AudioHostObject`, which itself has a reference to `Audio` that needs to be cleaned up, hence the call to the `Audio::~Audio` destructor. On Android, it will try to release the `global_ref<JAudio>` resource, which at the time, may not run in the JVM thread scope causing an app crash. Reviewed By: ansonsyfang Differential Revision: D42060942 fbshipit-source-id: b19f723f361db3794b704be97456bd4bbe980848
- Loading branch information