Skip to content

Commit

Permalink
Fix assertion violation when using Ctrl+B during recording, then stop
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Licameli committed Nov 9, 2023
1 parent 33d5e1c commit c5829a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/lib-track/PendingTracks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ void PendingTracks::ClearPendingTracks(std::vector<TrackListHolder> *pAdded)
pAdded->push_back(nullptr);
}
}

if (pAdded)
// Remove trailing nulls
while (!pAdded->empty() && !pAdded->back())
pAdded->pop_back();
}

/*! @excsafety{Strong} */
Expand Down

0 comments on commit c5829a4

Please sign in to comment.