diff options
Diffstat (limited to 'media/audio/linux/alsa_input.cc')
-rw-r--r-- | media/audio/linux/alsa_input.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/audio/linux/alsa_input.cc b/media/audio/linux/alsa_input.cc index 13aea5b4..afc37d6 100644 --- a/media/audio/linux/alsa_input.cc +++ b/media/audio/linux/alsa_input.cc @@ -7,7 +7,6 @@ #include "base/basictypes.h" #include "base/logging.h" #include "base/message_loop.h" -#include "base/scoped_ptr.h" #include "base/time.h" #include "media/audio/linux/alsa_util.h" #include "media/audio/linux/alsa_wrapper.h" @@ -193,6 +192,8 @@ void AlsaPcmInputStream::Stop() { } void AlsaPcmInputStream::Close() { + scoped_ptr<AlsaPcmInputStream> self_deleter(this); + // Check in case we were already closed or not initialized yet. if (!device_handle_ || !callback_) return; |