Merge pull request #70236 from quentinguidee/refactor/delete-nullptr
AudioServer: Remove redundant nullptr check before `delete`
This commit is contained in:
commit
f117487ddb
1 changed files with 2 additions and 6 deletions
|
@ -449,12 +449,8 @@ void AudioServer::_mix_step() {
|
|||
case AudioStreamPlaybackListNode::AWAITING_DELETION:
|
||||
case AudioStreamPlaybackListNode::FADE_OUT_TO_DELETION:
|
||||
playback_list.erase(playback, [](AudioStreamPlaybackListNode *p) {
|
||||
if (p->prev_bus_details) {
|
||||
delete p->prev_bus_details;
|
||||
}
|
||||
if (p->bus_details) {
|
||||
delete p->bus_details;
|
||||
}
|
||||
delete p->prev_bus_details;
|
||||
delete p->bus_details;
|
||||
p->stream_playback.unref();
|
||||
delete p;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue