Changeset 85265 in webkit


Ignore:
Timestamp:
Apr 28, 2011 5:03:50 PM (13 years ago)
Author:
ddkilzer@apple.com
Message:

Revert "<http://webkit.org/b/59705> WTF::postTimer() leaks a CFRunLoopTimerRef every time it's called"

This reverts commit r85195. It was crashing DumpRenderTree on Lion.

  • wtf/mac/MainThreadMac.mm:

(WTF::postTimer):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r85256 r85265  
     12011-04-28  David Kilzer  <ddkilzer@apple.com>
     2
     3        Revert "<http://webkit.org/b/59705> WTF::postTimer() leaks a CFRunLoopTimerRef every time it's called"
     4
     5        This reverts commit r85195.  It was crashing DumpRenderTree on Lion.
     6
     7        * wtf/mac/MainThreadMac.mm:
     8        (WTF::postTimer):
     9
    1102011-04-28  Adam Barth  <abarth@webkit.org>
    211
  • trunk/Source/JavaScriptCore/wtf/mac/MainThreadMac.mm

    r85195 r85265  
    3434#import <stdio.h>
    3535#import <wtf/Assertions.h>
    36 #import <wtf/RetainPtr.h>
    3736#import <wtf/Threading.h>
    3837
     
    9796
    9897    isTimerPosted = true;
    99     RetainPtr<CFRunLoopTimerRef> runLoopTimer(AdoptCF, CFRunLoopTimerCreate(0, 0, 0, 0, 0, timerFired, 0));
    100     CFRunLoopAddTimer(CFRunLoopGetCurrent(), runLoopTimer.get(), kCFRunLoopCommonModes);
     98    CFRunLoopAddTimer(CFRunLoopGetCurrent(), CFRunLoopTimerCreate(0, 0, 0, 0, 0, timerFired, 0), kCFRunLoopCommonModes);
    10199}
    102100
Note: See TracChangeset for help on using the changeset viewer.