Closed Bug 1394341 Opened 3 years ago Closed 3 years ago
_xmalloc/delete in Shared Buffer/Audio Block
59 bytes, text/x-review-board-request
The current global override of operator delete in mozalloc.h happens to be compatible with moz_xmalloc, but there is no need to depend on that.
http://eli.thegreenplace.net/2015/c-deleting-destructors-and-virtual-operator-delete/ gives a good description of operator delete with polymorphism.
Comment on attachment 8904425 [details] bug 1394341 replace xmalloc with operator new(size_t) to match AudioBlock deallocation in delete https://reviewboard.mozilla.org/r/176252/#review181234
Attachment #8904425 - Flags: review?(padenot) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/57865ef80d4f replace xmalloc with operator new(size_t) to match AudioBlock deallocation in delete r=padenot
You need to log in before you can comment on or make changes to this bug.