Title: [115708] trunk/Source/WebCore
- Revision
- 115708
- Author
- [email protected]
- Date
- 2012-04-30 20:26:45 -0700 (Mon, 30 Apr 2012)
Log Message
<rdar://problem/11352575> Many CGImageRefs leaked during media layout tests
Reviewed by Brian Weinstein.
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createImageForTimeInRect): Adopt the CGImageRef.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (115707 => 115708)
--- trunk/Source/WebCore/ChangeLog 2012-05-01 03:24:42 UTC (rev 115707)
+++ trunk/Source/WebCore/ChangeLog 2012-05-01 03:26:45 UTC (rev 115708)
@@ -1,3 +1,12 @@
+2012-04-30 Mark Rowe <[email protected]>
+
+ <rdar://problem/11352575> Many CGImageRefs leaked during media layout tests
+
+ Reviewed by Brian Weinstein.
+
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::createImageForTimeInRect): Adopt the CGImageRef.
+
2012-04-30 Emil A Eklund <[email protected]>
Change RenderBoxModelObject::calculateBackgroundImageGeometry to use roundToInt
Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (115707 => 115708)
--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2012-05-01 03:24:42 UTC (rev 115707)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2012-05-01 03:26:45 UTC (rev 115708)
@@ -657,7 +657,7 @@
#endif
[m_imageGenerator.get() setMaximumSize:CGSize(rect.size())];
- CGImageRef image = [m_imageGenerator.get() copyCGImageAtTime:CMTimeMakeWithSeconds(time, 600) actualTime:nil error:nil];
+ RetainPtr<CGImageRef> image = adoptCF([m_imageGenerator.get() copyCGImageAtTime:CMTimeMakeWithSeconds(time, 600) actualTime:nil error:nil]);
#if !LOG_DISABLED
double duration = WTF::currentTime() - start;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes