[Webkit-unassigned] [Bug 23315] Mismatched new[] / delete in ByteArray

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 14 05:56:49 PST 2009


------- Comment #1 from deanm at chromium.org  2009-01-14 05:56 PDT -------
One option that might be generally useful is to make RefCounted take a traits,
in which Traits::destroy(Type*) is responsible for destroying the object.  The
trait would default to something like DefaultRefCountedTrait, which would
implement the destroy(Type*) as a delete T;  ByteArray could then supply it's
own to do the proper ByteArray::~ByteArray() destructor, and then delete[].

I can try to make this patch, but I imagine any modifications to RefCounted as
controversial, so I'll wait for some feedback.


Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list