Changeset 126326 in webkit


Ignore:
Timestamp:
Aug 22, 2012 12:00:09 PM (12 years ago)
Author:
mrowe@apple.com
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r126325 r126326  
     12012-08-22  Mark Rowe  <mrowe@apple.com>
     2
     3        <http://webkit.org/b/94679> WebCore scrolling thread leaks objects due to them being autoreleased without any autorelease pool in place
     4
     5        Reviewed by Dan Bernstein.
     6
     7        * page/scrolling/mac/ScrollingThreadMac.mm:
     8        (WebCore::ScrollingThread::threadRunLoopSourceCallback): Ensure that an autorelease pool is in place when
     9        dispatching functions on the scrolling thread.
     10
    1112012-08-22  Pratik Solanki  <psolanki@apple.com>
    212
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingThreadMac.mm

    r108925 r126326  
    6464void ScrollingThread::threadRunLoopSourceCallback()
    6565{
     66    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    6667    dispatchFunctionsFromScrollingThread();
     68    [pool drain];
    6769}
    6870
Note: See TracChangeset for help on using the changeset viewer.