[Webkit-unassigned] [Bug 71042] Don't use GOwnPtr for ref-counted objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 27 14:21:47 PDT 2011


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


Martin Robinson <mrobinson at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrobinson at webkit.org




--- Comment #5 from Martin Robinson <mrobinson at webkit.org>  2011-10-27 14:21:47 PST ---
(In reply to comment #4)

> I considered adding a method to GRefPtr but decided against it since it has a lot of potential for misuse.  It would basically only ever be safe to use that method when the GRefPtr is NULL.  so I chose the more verbose approach instead.

This could be handled either via a deref of the old value or an ASSERT, but it's fine to avoid doing that for now, I think.

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