Index: jni/JniEventCallback.cpp |
diff --git a/jni/JniEventCallback.cpp b/jni/JniEventCallback.cpp |
index c92a48845b979d9ae45a52bfaa33e0e9494625de..e2035d9d83f9f0a1e5d6eaad8187763621c31cde 100644 |
--- a/jni/JniEventCallback.cpp |
+++ b/jni/JniEventCallback.cpp |
@@ -40,8 +40,10 @@ void JniEventCallback::Callback(AdblockPlus::JsValueList& params) |
{ |
JNIEnvAcquire env(GetJavaVM()); |
- jclass clazz = env->GetObjectClass(GetCallbackObject()); |
- jmethodID method = env->GetMethodID(clazz, "eventCallback", "(Ljava/util/List;)V"); |
+ jmethodID method = env->GetMethodID( |
+ *JniLocalReference<jclass>(*env, |
Felix Dahlke
2015/02/03 05:22:50
I think I've seen at least three instances of pret
René Jeschke
2015/02/03 13:51:26
Yeah, the first implementation supported this, but
Felix Dahlke
2015/02/04 04:11:50
Good point, yeah.
|
+ env->GetObjectClass(GetCallbackObject())), |
+ "eventCallback", "(Ljava/util/List;)V"); |
if (method) |
{ |