RESOLVED FIXED 97534
bearmingo cario_t reference leak when using cario
https://bugs.webkit.org/show_bug.cgi?id=97534
Summary cario_t reference leak when using cario
陈国民
Reported 2012-09-25 00:34:30 PDT
when create GraphicsContext instance, will make a cario_t reference leaks
Attachments
陈国民
Comment 1 2012-09-25 00:40:31 PDT
void GraphicsContext::platformInit(HDC dc, bool hasAlpha) { cairo_t* cr = 0; if (dc) cr = createCairoContextWithHDC(dc, hasAlpha); else setPaintingDisabled(true); m_data = new GraphicsContextPlatformPrivateToplevel(new PlatformContextCairo(cr)); m_data->m_hdc = dc; if (platformContext()->cr()) { // Make sure the context starts in sync with our state. setPlatformFillColor(fillColor(), fillColorSpace()); setPlatformStrokeColor(strokeColor(), strokeColorSpace()); } //need to release cario_t reference(GraphicsContextCairoWin.cpp) if (cr) cairo_destroy(cr); }
Note You need to log in before you can comment on or make changes to this bug.