feat(libwebrtc): delete the frame of an AudioDecoder::ParseResult through its virtual destructor #17454
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17454"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-08T19:54:19Z.
What
webrtc::AudioDecoder::ParseResult::~ParseResult()threw when the result still owned a frame. Itsunique_ptr<EncodedAudioFrame>deletes the frame through the virtual deleting destructor, so the destructor now calls it through the frame's own vtable (slot 1: the complete destructor takes slot 0, the same at M127 and M134 inapi/audio_codecs/audio_decoder.h). A result without a frame still does nothing. The slot is not checked on the console; the debt entry says so.Tested
Linux x86-64: full build,
check_conventions.py --base upstream/mainand the full suite pass on this branch (4581 of 4581 tests, none failing).ctest -R guest_webrtc_audio_decoderuses two fake frames whose vtables record different deletions, and a move that transfers the frame's ownership.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)