[Webkit-unassigned] [Bug 62642] [Efl] Add EflOwnPtr to wtf
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 15 10:41:57 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=62642
--- Comment #24 from Raphael Kubo da Costa <kubo at profusion.mobi> 2011-06-15 10:41:57 PST ---
(In reply to comment #23)
> (In reply to comment #22)
>
> > Good. Going back to comment #11, do you think it makes sense to either move GOwnPtr out of gobject/ to make it more general? How about specializing OwnPtr for GError, GList and the rest and removing the GOwnPtr specializations for them?
>
> This could probably be several patches.
>
> 1. Convert the GOwnPtr specializations to OwnPtr specializations.
Sounds reasonable. I started playing around with this, but I'm getting some errors because GOwnPtr has outPtr(), which OwnPtr does not. I wonder if such addition to OwnPtr would be welcome.
> 2. Create a smart pointer to be used for types that need to call free/g_free. We could probably start afresh from OwnFastMallocPtr.h, which is very light-weight.
Looking at it, using OwnFastMallocPtr itself would already solve my char* management issues. I'm open to ideas on where to put g_free() in the code flow.
--
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