Fix dangling pointers in CefAudioMirrorDestination (fixes issue #2713).

This commit is contained in:
Riku Palomäki
2019-07-16 21:42:39 +00:00
committed by Marshall Greenblatt
parent 1086495096
commit 367c6eb704
4 changed files with 13 additions and 10 deletions

View File

@ -666,7 +666,7 @@ class CefBrowserHostImpl : public CefBrowserHost,
bool is_background_host_ = false;
// Used to mirror audio streams
std::unique_ptr<CefAudioMirrorDestination> audio_mirror_destination_;
scoped_refptr<CefAudioMirrorDestination> audio_mirror_destination_;
// Used with auto-resize.
bool auto_resize_enabled_ = false;