<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Mac] Numerous CGColor leaks in swipe gestures"
   href="https://bugs.webkit.org/show_bug.cgi?id=146501">146501</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Mac] Numerous CGColor leaks in swipe gestures
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit2
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>joepeck&#64;webkit.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>darin&#64;apple.com, thorton&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>* SUMMARY
[Mac] Numerous CGColor leaks in swipe gestures

Unsure of the exact steps to reproduce.

* LEAK
Leak: 0x7ffee400cfb0  size=80  zone: DefaultMallocZone_0x10ab96000   CGColor  CFType  CoreGraphics
    Call stack: [thread 0x10aa86000]: 
        | 0x1 
        | start 
        | NSApplicationMain 
        | -[NSApplication run] 
        | -[BrowserApplication sendEvent:] 
        | -[NSApplication sendEvent:] 
        | -[BrowserWindow sendEvent:] 
        | -[Window sendEvent:] 
        | -[NSWindow sendEvent:] 
        | -[NSWindow _reallySendEvent:isDelayedEvent:] 
        | -[BrowserWKView scrollWheel:] 
        | -[WKView scrollWheel:] 
        | WebKit::ViewGestureController::handleScrollWheelEvent(NSEvent*) 
        | WebKit::ViewGestureController::trackSwipeGesture(NSEvent*, WebKit::ViewGestureController::SwipeDirection) 
        | -[NSEvent trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:] 
        | -[NSEvent _trackSwipeEventWithOptions:dampenAmountThresholdMin:max:trackingDistance:axis:velocityFilterClass:usingHandler:] 
        | ___trackSwipeWithScrollEvent_block_invoke 
        | ___ZN6WebKit21ViewGestureController17trackSwipeGestureEP7NSEventNS0_14SwipeDirectionE_block_invoke 
        | WebKit::ViewGestureController::beginSwipeGesture(WebKit::WebBackForwardListItem*, WebKit::ViewGestureController::SwipeDirection) 
        | CGColorCreateGenericGray 
        | create_color 
        | CGTypeCreateInstance 
        | _CFRuntimeCreateInstance 
        | malloc_zone_malloc 

* NOTES
- ViewGestureController::beginSwipeGesture certainly looks like it leaks:

        [m_swipeShadowLayer setColors:&#64;[
            (id)CGColorCreateGenericGray(0, 1.),
            (id)CGColorCreateGenericGray(0, 0.99),
            (id)CGColorCreateGenericGray(0, 0.98),
            (id)CGColorCreateGenericGray(0, 0.95),
            ...
        ]];</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>