[Webkit-unassigned] [Bug 62642] [Efl] Add EflOwnPtr to wtf

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 16 07:19:26 PDT 2011


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





--- Comment #26 from Raphael Kubo da Costa <kubo at profusion.mobi>  2011-06-16 07:19:26 PST ---
(In reply to comment #25)
> (In reply to comment #24)
> 
> > > 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.
> 
> It seems like this would only be the case if TCMalloc was disabled. fastFree and fastAlloc work via TCMalloc.

Oh well :)

Given that OwnFastMallocPtr doesn't seem to be very well-suited for inheritance (no virtual destructor, for example), do you suggest starting a new smart pointer class based on it (but not inheriting from it)?

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