[Webkit-unassigned] [Bug 38899] New: [CAIRO] Memory leak with cairo_pattern_t objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 11 05:37:20 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38899

           Summary: [CAIRO] Memory leak with cairo_pattern_t objects
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: abucur at adobe.com


There is an incomplete life cycle for cairo_pattern_t objects returned by the call Pattern::createPlatformPattern in PatternCairo.cpp.
The returned object is applied directly on the current surface without being deleted after the paint operation was executed.
This flaw can generate huge memory leaks if the pattern contains large objects (such as images).
This patch completes the life cycle of the problematic objects by calling cairo_destroy_pattern on them after the paint operation.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list