Index: libadblockplus-android/jni/JniWebRequest.cpp |
diff --git a/libadblockplus-android/jni/JniWebRequest.cpp b/libadblockplus-android/jni/JniWebRequest.cpp |
index 4d34b4c55e3dcbe25a46d5edebf2aa1637b81160..33d172e3785186dd1e8d985ee833189cf3460e62 100644 |
--- a/libadblockplus-android/jni/JniWebRequest.cpp |
+++ b/libadblockplus-android/jni/JniWebRequest.cpp |
@@ -48,7 +48,7 @@ static jlong JNICALL JniCtor(JNIEnv* env, jclass clazz, jobject callbackObject) |
{ |
try |
{ |
- return JniPtrToLong(new AdblockPlus::WebRequestPtr(new JniWebRequest(env, callbackObject))); |
+ return JniPtrToLong(new AdblockPlus::WebRequestSharedPtr(std::make_shared<JniWebRequest>(env, callbackObject))); |
} |
CATCH_THROW_AND_RETURN(env, 0) |
} |
@@ -75,7 +75,7 @@ AdblockPlus::ServerResponse JniWebRequest::GET(const std::string& url, |
"(Ljava/lang/String;Ljava/util/List;)" TYP("ServerResponse")); |
AdblockPlus::ServerResponse sResponse; |
- sResponse.status = AdblockPlus::WebRequest::NS_ERROR_FAILURE; |
+ sResponse.status = AdblockPlus::IWebRequest::NS_ERROR_FAILURE; |
if (method) |
{ |