Merge "Fix drm hal resource leaks" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-05-15 19:54:09 +00:00
committed by Android (Google) Code Review

View File

@@ -51,6 +51,9 @@ JCrypto::JCrypto(
}
JCrypto::~JCrypto() {
if (mCrypto != NULL) {
mCrypto->destroyPlugin();
}
mCrypto.clear();
JNIEnv *env = AndroidRuntime::getJNIEnv();