WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Add attachment
proposed patch, testcase, etc.
Stephen Chenney
Comment 1
2013-04-12 07:02:24 PDT
https://code.google.com/p/chromium/issues/detail?id=230803
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug