Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit daececcb authored by Hongguang Chen's avatar Hongguang Chen Committed by Android (Google) Code Review
Browse files

Merge "Fix abort when DeleteWeakGlobalRef in ~FrontendClientCallbackImpl()"

parents 882f0a52 4b473fa3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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(