[Webkit-unassigned] [Bug 57307] [GTK] Fix leaked pointer in FontGtk.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 29 13:22:35 PDT 2011


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


Martin Robinson <mrobinson at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #87280|review?                     |review-
               Flag|                            |




--- Comment #3 from Martin Robinson <mrobinson at webkit.org>  2011-03-29 13:22:34 PST ---
(From update of attachment 87280)
Great catch! I think we can use this opportunity to clean this code up a bit. We should probably make utf16_to_utf8 return a char* instead of taking a char*& (which is bad form, IMO). Then in the caller we should immediately place the return value in a GOwnPtr<gchar> and remove the calls to g_free. This will prevent any mistakes in the future as well.

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