[Scummvm-devel] CVS: "added extra flag to mixer so we don't use free() on new'd pointers"

Max Horn max at quendi.de
Fri Oct 24 17:34:19 CEST 2003


Am Samstag, 25.10.03 um 01:42 Uhr schrieb Joost Peters:

>>> Update of /cvsroot/scummvm/scummvm/sound
>>> In directory sc8-pr-cvs1:/tmp/cvs-serv26508/sound
>>>
>>> Modified Files:
>>> mixer.cpp mixer.h
>>> Log Message:
>>> added extra flag to mixer so we don't use free() on new'd pointers
>>>
>> Hrm, is that really necessary? Why can't we just always use free() to
>> allocate memory for buffers passed to the mixer?

Sorry, I meant of course: "Why can't we just always use malloc() to 
allocate memory..."
>
So no, I am most definitely not suggesting that you free() memory 
allocated via new. But rather, I wonder why you have to allocate a 
buffer with new - it should be trivial to just use malloc() instead...

Cheers,

Max





More information about the Scummvm-devel mailing list