Crash in com.apple.WebKit.WebContent at com.apple.MediaToolbox.
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 Aug 2013 03:29:16 +0000 (03:29 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 Aug 2013 03:29:16 +0000 (03:29 +0000)
https://bugs.webkit.org/show_bug.cgi?id=119645

Reviewed by Eric Carlson.

Work around crash caused by <rdar://problem/14688471> by releasing
m_request as soon as keys have been added to it.

* Modules/encryptedmedia/CDMPrivateAVFoundation.mm:
(WebCore::CDMSessionAVFoundation::update):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@153920 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/encryptedmedia/CDMPrivateAVFoundation.mm

index 834585b..5eacb62 100644 (file)
@@ -1,3 +1,16 @@
+2013-08-09  Jer Noble  <jer.noble@apple.com>
+
+        Crash in com.apple.WebKit.WebContent at com.apple.MediaToolbox.
+        https://bugs.webkit.org/show_bug.cgi?id=119645
+
+        Reviewed by Eric Carlson.
+
+        Work around crash caused by <rdar://problem/14688471> by releasing
+        m_request as soon as keys have been added to it.
+
+        * Modules/encryptedmedia/CDMPrivateAVFoundation.mm:
+        (WebCore::CDMSessionAVFoundation::update):
+
 2013-08-09  Anders Carlsson  <andersca@apple.com>
 
         Artifacts seen sometimes with layer backed WebKit1 plug-in
index bb78fdc..4704aa2 100644 (file)
@@ -152,6 +152,7 @@ bool CDMSessionAVFoundation::update(Uint8Array* key, RefPtr<Uint8Array>& nextMes
     errorCode = 0;
     systemCode = 0;
     nextMessage = nullptr;
+    m_request = nullptr;
 
     return true;
 }