mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix dangling pointers in CefAudioMirrorDestination (fixes issue #2713).
This commit is contained in:
committed by
Marshall Greenblatt
parent
1086495096
commit
367c6eb704
@ -2744,8 +2744,8 @@ bool CefBrowserHostImpl::StartAudioMirroring() {
|
||||
if (client_.get()) {
|
||||
CefRefPtr<CefAudioHandler> audio_handler = client_->GetAudioHandler();
|
||||
if (audio_handler.get()) {
|
||||
audio_mirror_destination_.reset(new CefAudioMirrorDestination(
|
||||
this, audio_handler, content::AudioMirroringManager::GetInstance()));
|
||||
audio_mirror_destination_ = new CefAudioMirrorDestination(
|
||||
this, audio_handler, content::AudioMirroringManager::GetInstance());
|
||||
audio_mirror_destination_->Start();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user