Index: libadblockplus-android/jni/JniLogSystem.cpp |
diff --git a/libadblockplus-android/jni/JniLogSystem.cpp b/libadblockplus-android/jni/JniLogSystem.cpp |
index d537a685bdc7dd7dc7fb10d64efcbed65aa3a5df..6f78e33a6e3a611308b4a06aea6a0dbc8814d5af 100644 |
--- a/libadblockplus-android/jni/JniLogSystem.cpp |
+++ b/libadblockplus-android/jni/JniLogSystem.cpp |
@@ -39,14 +39,14 @@ static jlong JNICALL JniCtor(JNIEnv* env, jclass clazz, jobject callbackObject) |
{ |
try |
{ |
- return JniPtrToLong(new JniLogSystemCallback(env, callbackObject)); |
+ return JniPtrToLong(new JniLogSystemCallbackPtr(new JniLogSystemCallback(env, callbackObject))); |
} |
CATCH_THROW_AND_RETURN(env, 0) |
} |
static void JNICALL JniDtor(JNIEnv* env, jclass clazz, jlong ptr) |
{ |
- delete JniLongToTypePtr<JniLogSystemCallback>(ptr); |
+ delete JniLongToTypePtr<JniLogSystemCallbackPtr>(ptr); |
} |
JniLogSystemCallback::JniLogSystemCallback(JNIEnv* env, jobject callbackObject) |