I would like to make the proposal to replace std::malloc in HeapBlock with the new() operator.
Also there are only a few other occurrences: MidiMessage, PNGLoader. Thats all.
Shouldn’t be complicated, and than juce uses a single way to allocate memory.
I’m thinking about to replace the global new/delete operator
- at the beginning for debug reasons (to spot allocations on the audio-callback)
- maybe later to implement a very fast allocator