Title: [126326] trunk/Source/WebCore
- Revision
- 126326
- Author
- [email protected]
- Date
- 2012-08-22 12:00:09 -0700 (Wed, 22 Aug 2012)
Log Message
<http://webkit.org/b/94679> WebCore scrolling thread leaks objects due to them being autoreleased without any autorelease pool in place
Reviewed by Dan Bernstein.
* page/scrolling/mac/ScrollingThreadMac.mm:
(WebCore::ScrollingThread::threadRunLoopSourceCallback): Ensure that an autorelease pool is in place when
dispatching functions on the scrolling thread.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (126325 => 126326)
--- trunk/Source/WebCore/ChangeLog 2012-08-22 18:44:37 UTC (rev 126325)
+++ trunk/Source/WebCore/ChangeLog 2012-08-22 19:00:09 UTC (rev 126326)
@@ -1,3 +1,13 @@
+2012-08-22 Mark Rowe <[email protected]>
+
+ <http://webkit.org/b/94679> WebCore scrolling thread leaks objects due to them being autoreleased without any autorelease pool in place
+
+ Reviewed by Dan Bernstein.
+
+ * page/scrolling/mac/ScrollingThreadMac.mm:
+ (WebCore::ScrollingThread::threadRunLoopSourceCallback): Ensure that an autorelease pool is in place when
+ dispatching functions on the scrolling thread.
+
2012-08-22 Pratik Solanki <[email protected]>
Failure to dispatch delegate callbacks if resource load fails synchronously
Modified: trunk/Source/WebCore/page/scrolling/mac/ScrollingThreadMac.mm (126325 => 126326)
--- trunk/Source/WebCore/page/scrolling/mac/ScrollingThreadMac.mm 2012-08-22 18:44:37 UTC (rev 126325)
+++ trunk/Source/WebCore/page/scrolling/mac/ScrollingThreadMac.mm 2012-08-22 19:00:09 UTC (rev 126326)
@@ -63,7 +63,9 @@
void ScrollingThread::threadRunLoopSourceCallback()
{
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
dispatchFunctionsFromScrollingThread();
+ [pool drain];
}
} // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes