[Webkit-unassigned] [Bug 69101] New: [chromium] Memory leak when updating GPU layers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 29 13:12:21 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=69101
Summary: [chromium] Memory leak when updating GPU layers
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Platform
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: achicu at adobe.com
Every time a GPU layer is updated the CG graphics context is leaked:
In http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/platform/graphics/chromium/PlatformCanvas.h the m_contextCG and m_colorSpace members are RetainPtr, but the initial reference is never released. RetainPtr needs adoptCF in order to adopt the reference of the objects that were just created.
RetainPtr<CGColorSpaceRef> m_colorSpace;
RetainPtr<CGContextRef> m_contextCG;
http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/platform/graphics/chromium/PlatformCanvas.cpp
m_colorSpace = CGColorSpaceCreateDeviceRGB();
size_t rowBytes = canvas->size().width() * 4;
m_contextCG = CGBitmapContextCreate(canvas->m_pixelData.get(),
canvas->size().width(), canvas->size().height(), 8, rowBytes,
m_colorSpace.get(),
kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host);
--
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