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

Commit e2ac5fdd authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 352 into donut

* changes:
  Remove dangling media recorder client reference when setCamera() is used.
parents 7e6a65ed 0ae13e36
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -217,7 +217,13 @@ status_t CameraService::Client::unlock()
    // allow anyone to use camera
    LOGV("unlock (%p)", getCameraClient()->asBinder().get());
    status_t result = checkPid();
    if (result == NO_ERROR) mClientPid = 0;
    if (result == NO_ERROR) {
        mClientPid = 0;

        // we need to remove the reference so that when app goes
        // away, the reference count goes to 0.
        mCameraClient.clear();
    }
    return result;
}