[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:
Ivo van Dongen
2016-10-11 10:30:38 +03:00
committed by GitHub
parent efc1bff65f
commit 61d8ecefda
3 changed files with 12 additions and 6 deletions

View File

@@ -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;