summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index bb62f2d55f..7f50eb8273 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -8270,7 +8270,7 @@ jobject ClassLinker::CreatePathClassLoader(Thread* self,
// Make it a global ref and return.
ScopedLocalRef<jobject> local_ref(
- soa.Env(), soa.Env()->AddLocalReference<jobject>(h_path_class_loader.Get()));
+ soa.Env(), soa.Env()->AddLocalReference<jobject>(MakeObjPtr(h_path_class_loader.Get())));
return soa.Env()->NewGlobalRef(local_ref.get());
}