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 266834 8e6e3826c2cdbe7d4ba64f5ec037c2a8b4cbafcf
parent 266833 59aacb8891482d915b7e0e655e206a6d648270e2
child 266835 19d2f916667f055ab6bc18d0215786aafce8bcd6
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot, sledru
bugs1134977, 1109802
milestone39.0a2
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;
 }