[Webkit-unassigned] [Bug 76219] cairo_t* memory leak in GraphicsContext::platformInit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 17 00:20:25 PDT 2012


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


Hideki <yoshida-hxa at necst.nec.co.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #169104|                            |review+, commit-queue?
               Flag|                            |




--- Comment #1 from Hideki <yoshida-hxa at necst.nec.co.jp>  2012-10-17 00:21:17 PST ---
Created an attachment (id=169104)
 --> (https://bugs.webkit.org/attachment.cgi?id=169104&action=review)
Proposal for fixing the memory leak in WinCairo

Thank you for useful information, Brain.

My team also found same memory leak problem in WinCairo port and
figured out the same bug.

Here is the patch which we made.

We just moved
 cairo_destroy(cr);
to the end of the function and added if statement to 
make sure that cr is not ZERO for fear that createCairoContextWithHDC
is not called.

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