Bug 1134977 - Release IAudioStreamVolume when closing WASAPI stream. Refixes bug 1109802. r=padenot, a=sledru
authorMatthew Gregan <kinetik@flim.org>
Thu, 02 Apr 2015 10:08:07 +1300
changeset 258256 8348e6654b30
parent 258255 dad86e3e53cd
child 258257 88b4ec69e42f
push id4628
push userryanvm@gmail.com
push date2015-04-03 20:32 +0000
treeherdermozilla-beta@e4566e5991e8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot, sledru
bugs1134977, 1109802
milestone38.0
Bug 1134977 - Release IAudioStreamVolume when closing WASAPI stream. Refixes bug 1109802. r=padenot, a=sledru
media/libcubeb/src/cubeb_wasapi.cpp
--- a/media/libcubeb/src/cubeb_wasapi.cpp
+++ b/media/libcubeb/src/cubeb_wasapi.cpp
@@ -1150,16 +1150,19 @@ void close_wasapi_stream(cubeb_stream * 
   stm->stream_reset_lock->assert_current_thread_owns();
 
   SafeRelease(stm->client);
   stm->client = NULL;
 
   SafeRelease(stm->render_client);
   stm->render_client = NULL;
 
+  SafeRelease(stm->audio_stream_volume);
+  stm->audio_stream_volume = NULL;
+
   if (stm->resampler) {
     cubeb_resampler_destroy(stm->resampler);
     stm->resampler = NULL;
   }
 
   free(stm->mix_buffer);
   stm->mix_buffer = NULL;
 }