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

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

Merge "Allow drm plugin to be released when binder dies" into oc-dev

parents 5d6ebe53 3e289167
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -958,11 +958,9 @@ status_t DrmHal::signRSA(Vector<uint8_t> const &sessionId,

void DrmHal::binderDied(const wp<IBinder> &the_late_who __unused)
{
    mEventLock.lock();
    mListener.clear();
    mEventLock.unlock();

    Mutex::Autolock autoLock(mLock);
    setListener(NULL);
    mPlugin->setListener(NULL);
    mPlugin.clear();
}