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

Commit 74fdf303 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Destroy output tracks when existing." into main

parents cc1d52cd 08209921
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7760,6 +7760,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();