Index: android_webview/native/android_protocol_handler.cc |
diff --git a/android_webview/native/android_protocol_handler.cc b/android_webview/native/android_protocol_handler.cc |
index e25b36dae3efbf402399c696361e81030e974742..be3376cc976e0f2815e0d2b211c10e1ded01d171 100644 |
--- a/android_webview/native/android_protocol_handler.cc |
+++ b/android_webview/native/android_protocol_handler.cc |
@@ -281,14 +281,16 @@ |
} |
} |
-static ScopedJavaLocalRef<jstring> GetAndroidAssetPath(JNIEnv* env, |
- jclass /*clazz*/) { |
- return ConvertUTF8ToJavaString(env, android_webview::kAndroidAssetPath); |
-} |
- |
-static ScopedJavaLocalRef<jstring> GetAndroidResourcePath(JNIEnv* env, |
- jclass /*clazz*/) { |
- return ConvertUTF8ToJavaString(env, android_webview::kAndroidResourcePath); |
+static jstring GetAndroidAssetPath(JNIEnv* env, jclass /*clazz*/) { |
+ // OK to release, JNI binding. |
+ return ConvertUTF8ToJavaString( |
+ env, android_webview::kAndroidAssetPath).Release(); |
+} |
+ |
+static jstring GetAndroidResourcePath(JNIEnv* env, jclass /*clazz*/) { |
+ // OK to release, JNI binding. |
+ return ConvertUTF8ToJavaString( |
+ env, android_webview::kAndroidResourcePath).Release(); |
} |
} // namespace android_webview |