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

Commit 8f445de3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use SharedRefBase::make to allocate."

parents a199662c e0496a2a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -713,7 +713,8 @@ status_t DrmHal::openSession(DrmPlugin::SecurityLevel level,
    } while (retry);

    if (err == OK) {
        std::shared_ptr<DrmSessionClient> client(new DrmSessionClient(this, sessionId));
        std::shared_ptr<DrmSessionClient> client =
                ndk::SharedRefBase::make<DrmSessionClient>(this, sessionId);
        DrmSessionManager::Instance()->addSession(AIBinder_getCallingPid(),
                std::static_pointer_cast<IResourceManagerClient>(client), sessionId);
        mOpenSessions.push_back(client);