Index: libadblockplus-android/jni/JniSubscription.cpp |
diff --git a/libadblockplus-android/jni/JniSubscription.cpp b/libadblockplus-android/jni/JniSubscription.cpp |
index 4217fb0655e39a121cdcde6ecd1b2484ea7935ab..6e8a971e3af2a10489642465c139ce18b80892bc 100644 |
--- a/libadblockplus-android/jni/JniSubscription.cpp |
+++ b/libadblockplus-android/jni/JniSubscription.cpp |
@@ -28,7 +28,8 @@ static jlong JNICALL JniCtor(JNIEnv* env, jclass clazz, jlong jsValue) |
{ |
try |
{ |
- return JniPtrToLong(new AdblockPlus::SubscriptionPtr(new AdblockPlus::Subscription(JniGetJsValuePtr(jsValue)))); |
+ return JniPtrToLong(new AdblockPlus::SubscriptionPtr( |
+ *JniLongToTypePtr<AdblockPlus::SubscriptionPtr>(jsValue))); |
} |
CATCH_THROW_AND_RETURN(env, 0) |
} |