Merge "Fix abort when DeleteWeakGlobalRef in ~FrontendClientCallbackImpl()"
This commit is contained in:
committed by
Android (Google) Code Review
commit
daececcba1
@@ -1245,7 +1245,8 @@ jobject JTuner::openFrontendByHandle(int feHandle) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sp<FrontendClientCallbackImpl> feClientCb = new FrontendClientCallbackImpl(mObject);
|
||||
sp<FrontendClientCallbackImpl> feClientCb =
|
||||
new FrontendClientCallbackImpl(env->NewWeakGlobalRef(mObject));
|
||||
mFeClient->setCallback(feClientCb);
|
||||
// TODO: add more fields to frontend
|
||||
return env->NewObject(
|
||||
|
||||
Reference in New Issue
Block a user