diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-10 19:23:52 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-10 19:23:52 +0000 |
commit | 9e1127b6c44f637be5da8f79c5bfa2cd9ad6278e (patch) | |
tree | 0dfb36effe74998c1b528b01d6cdb59b8fc9b0ce /media | |
parent | 1c7b206c9a57a1878cf004c02666505d55b1745c (diff) | |
download | chromium_src-9e1127b6c44f637be5da8f79c5bfa2cd9ad6278e.zip chromium_src-9e1127b6c44f637be5da8f79c5bfa2cd9ad6278e.tar.gz chromium_src-9e1127b6c44f637be5da8f79c5bfa2cd9ad6278e.tar.bz2 |
Delete the AudioOutputStream correctly (by using Close and not delete).
TEST=Fixes a crash in the WASAPIAudioOutputStreamTestMono test when mono isn't supported.
Review URL: http://codereview.chromium.org/9169011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117075 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/audio/win/audio_low_latency_output_win_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/audio/win/audio_low_latency_output_win_unittest.cc b/media/audio/win/audio_low_latency_output_win_unittest.cc index fbb4a5f..d979073 100644 --- a/media/audio/win/audio_low_latency_output_win_unittest.cc +++ b/media/audio/win/audio_low_latency_output_win_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -468,7 +468,7 @@ TEST(WinAudioOutputTest, WASAPIAudioOutputStreamTestMono) { bool opened; EXPECT_TRUE(opened = aos->Open()); if (!opened) { - delete aos; + aos->Close(); return; } // Derive the expected size in bytes of each packet. |