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

Commit c7d9afdc authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera2: Make sure to clean out reprocess streams on shutdown as well.

Otherwise, streams may persist past expected lifetime.

Bug: 6243944
Change-Id: I901971b78baf9d577ea3812588dec3885232e7ef
parent 4bb81188
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -145,6 +145,7 @@ status_t Camera2Device::disconnect() {
            ALOGW("%s: Closing camera device %d with %d requests in flight!",
                    __FUNCTION__, mId, inProgressCount);
        }
        mReprocessStreams.clear();
        mStreams.clear();
        res = mDevice->common.close(&mDevice->common);
        if (res != OK) {