b=1006279 finalize thread pool when MediaBufferDecoder is destroyed r=padenot
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 19 Jun 2014 14:48:22 +1200
changeset 189507 25101d87fd9b25de7359a86917c8cc115aa6aea7
parent 189506 867fabab7a851b74baf436ed1e58421f51d37d32
child 189508 85309cd801b8db6327ce17a81fcbefe7652712f7
push id26988
push useremorley@mozilla.com
push dateThu, 19 Jun 2014 14:39:10 +0000
treeherdermozilla-central@ad11457bae17 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1006279
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
b=1006279 finalize thread pool when MediaBufferDecoder is destroyed r=padenot
content/media/webaudio/MediaBufferDecoder.h
--- a/content/media/webaudio/MediaBufferDecoder.h
+++ b/content/media/webaudio/MediaBufferDecoder.h
@@ -73,16 +73,17 @@ struct WebAudioDecodeJob MOZ_FINAL
  * thread-pool) and provides a clean external interface.
  */
 class MediaBufferDecoder
 {
 public:
   void AsyncDecodeMedia(const char* aContentType, uint8_t* aBuffer,
                         uint32_t aLength, WebAudioDecodeJob& aDecodeJob);
 
+  ~MediaBufferDecoder() { Shutdown(); }
   void Shutdown();
 
   size_t SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const
   {
     return 0;
   }
 
 private: