Bug 1398072 - Fix an obvious leak in Cleakey CDM. r=cpearce
authorJames Cheng <jacheng@mozilla.com>
Fri, 08 Sep 2017 17:34:48 +0800
changeset 662264 252516ee4b1e37507c60af594d1e49cd2fcc7685
parent 662263 5310033cd68c4f9dc06d0f62b3ff854666691255
child 662265 2a70f67c7c655b66c63655c7c7c68b57a1d93abb
push id79014
push userbmo:bpostelnicu@mozilla.com
push dateMon, 11 Sep 2017 09:58:20 +0000
reviewerscpearce
bugs1398072
milestone57.0a1
Bug 1398072 - Fix an obvious leak in Cleakey CDM. r=cpearce MozReview-Commit-ID: Ee9Me0MKpPU
media/gmp-clearkey/0.1/ClearKeyCDM.cpp
--- a/media/gmp-clearkey/0.1/ClearKeyCDM.cpp
+++ b/media/gmp-clearkey/0.1/ClearKeyCDM.cpp
@@ -188,9 +188,10 @@ ClearKeyCDM::Destroy()
 {
   mSessionManager->DecryptingComplete();
 #ifdef ENABLE_WMF
   // If we have called 'DeinitializeDecoder' mVideoDecoder will be null.
   if (mVideoDecoder) {
     mVideoDecoder->DecodingComplete();
   }
 #endif
+  delete this;
 }
\ No newline at end of file