RESOLVED WONTFIX 69101
[chromium] Memory leak when updating GPU layers
https://bugs.webkit.org/show_bug.cgi?id=69101
Summary [chromium] Memory leak when updating GPU layers
Alexandru Chiculita
Reported 2011-09-29 13:12:22 PDT
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);
Attachments
Note You need to log in before you can comment on or make changes to this bug.