Title: [214257] trunk/Source/WebCore
Revision
214257
Author
[email protected]
Date
2017-03-22 10:48:51 -0700 (Wed, 22 Mar 2017)

Log Message

Add back the null check in TextureCacheCV::textureFromImage()
https://bugs.webkit.org/show_bug.cgi?id=169931
<rdar://problem/27139820>

Reviewed by Alex Christensen.

No new tests. Just adding back a check that was previously there.

* platform/graphics/cv/TextureCacheCV.mm:
(WebCore::TextureCacheCV::textureFromImage):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (214256 => 214257)


--- trunk/Source/WebCore/ChangeLog	2017-03-22 17:41:11 UTC (rev 214256)
+++ trunk/Source/WebCore/ChangeLog	2017-03-22 17:48:51 UTC (rev 214257)
@@ -1,3 +1,16 @@
+2017-03-22  John Wilander  <[email protected]>
+
+        Add back the null check in TextureCacheCV::textureFromImage()
+        https://bugs.webkit.org/show_bug.cgi?id=169931
+        <rdar://problem/27139820>
+
+        Reviewed by Alex Christensen.
+
+        No new tests. Just adding back a check that was previously there.
+
+        * platform/graphics/cv/TextureCacheCV.mm:
+        (WebCore::TextureCacheCV::textureFromImage):
+
 2017-03-21  Antti Koivisto  <[email protected]>
 
         Use AtomicString in RuleSet and RuleFeature

Modified: trunk/Source/WebCore/platform/graphics/cv/TextureCacheCV.mm (214256 => 214257)


--- trunk/Source/WebCore/platform/graphics/cv/TextureCacheCV.mm	2017-03-22 17:41:11 UTC (rev 214256)
+++ trunk/Source/WebCore/platform/graphics/cv/TextureCacheCV.mm	2017-03-22 17:48:51 UTC (rev 214257)
@@ -75,6 +75,9 @@
 
     auto weakThis = m_weakPtrFactory.createWeakPtr();
     dispatch_async(dispatch_get_main_queue(), [weakThis] {
+        if (!weakThis)
+            return;
+        
         if (auto cache = weakThis->m_cache.get())
 #if PLATFORM(IOS)
             CVOpenGLESTextureCacheFlush(cache, 0);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to