Bug 1398072 - Fix an obvious leak in Cleakey CDM. r?cpearce draft
authorJames Cheng <jacheng@mozilla.com>
Fri, 08 Sep 2017 17:34:48 +0800
changeset 661335 6655fbac8d2ada542916221c6130220cc10b49fe
parent 661226 a98657a44bb8dc95970c6e62d1e9f5f97f95697b
child 730532 7bc90a2d56992c09db07b271555b6c95bc469997
push id78716
push userbmo:jacheng@mozilla.com
push dateFri, 08 Sep 2017 09:35:09 +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