Title: [281950] trunk/Source/WebCore
Revision
281950
Author
ddkil...@apple.com
Date
2021-09-02 13:31:32 -0700 (Thu, 02 Sep 2021)

Log Message

Leak of VTImageRotationSessionRef (176 bytes) in com.apple.WebKit.GPU.Development process
<https://webkit.org/b/229781>
<rdar://problem/82651897>

Reviewed by Darin Adler.

* platform/graphics/cv/ImageRotationSessionVT.mm:
(WebCore::ImageRotationSessionVT::initialize):
- Add missing adoptCF() to fix the leak.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (281949 => 281950)


--- trunk/Source/WebCore/ChangeLog	2021-09-02 20:13:45 UTC (rev 281949)
+++ trunk/Source/WebCore/ChangeLog	2021-09-02 20:31:32 UTC (rev 281950)
@@ -1,3 +1,15 @@
+2021-09-02  David Kilzer  <ddkil...@apple.com>
+
+        Leak of VTImageRotationSessionRef (176 bytes) in com.apple.WebKit.GPU.Development process
+        <https://webkit.org/b/229781>
+        <rdar://problem/82651897>
+
+        Reviewed by Darin Adler.
+
+        * platform/graphics/cv/ImageRotationSessionVT.mm:
+        (WebCore::ImageRotationSessionVT::initialize):
+        - Add missing adoptCF() to fix the leak.
+
 2021-09-02  Peng Liu  <peng.l...@apple.com>
 
         [MSE][GPUP] SourceBufferPrivateAVFObjC does not work properly when audio and video exchange their track IDs

Modified: trunk/Source/WebCore/platform/graphics/cv/ImageRotationSessionVT.mm (281949 => 281950)


--- trunk/Source/WebCore/platform/graphics/cv/ImageRotationSessionVT.mm	2021-09-02 20:13:45 UTC (rev 281949)
+++ trunk/Source/WebCore/platform/graphics/cv/ImageRotationSessionVT.mm	2021-09-02 20:31:32 UTC (rev 281950)
@@ -83,7 +83,7 @@
 
     VTImageRotationSessionRef rawRotationSession = nullptr;
     VTImageRotationSessionCreate(kCFAllocatorDefault, m_rotationProperties.angle, &rawRotationSession);
-    m_rotationSession = rawRotationSession;
+    m_rotationSession = adoptCF(rawRotationSession);
     VTImageRotationSessionSetProperty(m_rotationSession.get(), kVTImageRotationPropertyKey_EnableHighSpeedTransfer, kCFBooleanTrue);
 
     if (m_rotationProperties.flipY)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to