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

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

Merge "Destroy output tracks when existing." into main

parents e2d58052 c62d6030
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7864,6 +7864,9 @@ void DuplicatingThread::threadLoop_exit()
        audio_utils::lock_guard l(mutex());
        localTracks = std::move(mOutputTracks);
        mOutputTracks.clear();
        for (size_t i = 0; i < localTracks.size(); ++i) {
            localTracks[i]->destroy();
        }
    }
    localTracks.clear();
    outputTracks.clear();