[Webkit-unassigned] [Bug 97534] cario_t reference leak when using cario

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 25 00:40:03 PDT 2012


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


陈国民 <bearmingo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from 陈国民 <bearmingo at gmail.com>  2012-09-25 00:40:31 PST ---


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);
}

-- 
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