Index: jni/JniCallbacks.cpp |
diff --git a/jni/JniCallbacks.cpp b/jni/JniCallbacks.cpp |
index 92097fd623df7a027cac6af300bc14ff7696fe6a..b0da62d6c86528571875fbc0c86515f9a7ec1f77 100644 |
--- a/jni/JniCallbacks.cpp |
+++ b/jni/JniCallbacks.cpp |
@@ -18,10 +18,10 @@ |
#include "JniCallbacks.h" |
JniCallbackBase::JniCallbackBase(JNIEnv* env, jobject callbackObject) |
+ : callbackObject(new JniGlobalReference<jobject>(env, callbackObject)), |
+ exceptionLoggerClass(new JniGlobalReference<jclass>(env, env->FindClass(PKG("JniExceptionHandler")))) |
{ |
env->GetJavaVM(&javaVM); |
- this->callbackObject.reset(new JniGlobalReference<jobject>(env, callbackObject)); |
- exceptionLoggerClass.reset(new JniGlobalReference<jclass>(env, env->FindClass(PKG("JniExceptionHandler")))); |
} |
JniCallbackBase::~JniCallbackBase() |