Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1975)

Unified Diff: base/android/apk_assets.cc

Issue 1272203002: Fix local reference leak in OpenApkAsset. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/apk_assets.cc
diff --git a/base/android/apk_assets.cc b/base/android/apk_assets.cc
index bcdac6db6ecaca5a908eee7f265321ee71477dd9..fab7fd017f49d316e81e5de08331a669414e0dc0 100644
--- a/base/android/apk_assets.cc
+++ b/base/android/apk_assets.cc
@@ -26,7 +26,7 @@ int OpenApkAsset(const std::string& file_path,
ScopedJavaLocalRef<jlongArray> jarr = Java_ApkAssets_open(
env,
base::android::GetApplicationContext(),
- base::android::ConvertUTF8ToJavaString(env, file_path).Release());
+ base::android::ConvertUTF8ToJavaString(env, file_path).obj());
std::vector<jlong> results;
base::android::JavaLongArrayToLongVector(env, jarr.obj(), &results);
CHECK_EQ(3U, results.size());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698