[android] Runtime Style Filter enhancements (#6623)
* [android] Additional null check - prevents errors in array conversion * [android] style conversion - delete local refs asap to avoid ref table overflow * [android] Filter - hide concrete implementation classes to avoid confusion
This commit is contained in:
@@ -9,7 +9,11 @@ namespace android {
|
||||
|
||||
Value::Value(jni::JNIEnv& env, jni::jobject* _value) : jenv(env), value(_value) {}
|
||||
|
||||
Value::~Value() {}
|
||||
Value::~Value() {
|
||||
if (value) {
|
||||
jni::DeleteLocalRef(jenv, value);
|
||||
}
|
||||
}
|
||||
|
||||
bool Value::isNull() const {
|
||||
return value == nullptr;
|
||||
|
||||
Reference in New Issue
Block a user