Bug 1109802 - Release IAudioStreamVolume after use in libcubeb's WASAPI backend. r=padenot, a=lsblakk
authorMatthew Gregan <kinetik@flim.org>
Thu, 11 Dec 2014 12:17:19 +1300
changeset 242389 617a07d3b29dae98843a51f1a9da7d6cd6d4966d
parent 242388 993c07956f3d2e3fdda0f4c65619d94ec840f9ad
child 242390 586519c20ccd407a7b7ec612a1b0a9aadd8a410a
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot, lsblakk
bugs1109802
milestone36.0a2
Bug 1109802 - Release IAudioStreamVolume after use in libcubeb's WASAPI backend. r=padenot, a=lsblakk
media/libcubeb/src/cubeb_wasapi.cpp
--- a/media/libcubeb/src/cubeb_wasapi.cpp
+++ b/media/libcubeb/src/cubeb_wasapi.cpp
@@ -826,16 +826,17 @@ void wasapi_stream_destroy(cubeb_stream 
   }
 
   SafeRelease(stm->shutdown_event);
   SafeRelease(stm->refill_event);
 
   SafeRelease(stm->client);
   SafeRelease(stm->render_client);
   SafeRelease(stm->audio_clock);
+  SafeRelease(stm->audio_stream_volume);
 
   cubeb_resampler_destroy(stm->resampler);
 
   free(stm->mix_buffer);
   free(stm);
 }
 
 int wasapi_stream_start(cubeb_stream * stm)