Snap for 5617038 from 239fa21b5fd71c5672c067e4aa513888184e3be7 to qt-aml-release
Change-Id: I12c42db30b705b6db2c953cfd40722dcdcd8e9ab
diff --git a/jni/benchmark_jni.cpp b/jni/benchmark_jni.cpp
index f39397c..8da014c 100644
--- a/jni/benchmark_jni.cpp
+++ b/jni/benchmark_jni.cpp
@@ -178,6 +178,7 @@
jobject creator = env->GetObjectField(inout, inout_inputCreator);
if (creator == nullptr) { return false; }
env->CallVoidMethod(creator, createInput_method, byteBuffer);
+ env->DeleteLocalRef(byteBuffer);
if (env->ExceptionCheck()) { return false; }
return true;
};