1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

New class HeapBlock, which provides a safe and object-oriented way to allocate heap space. I've used HeapBlocks to replace almost all uses of malloc/free throughout the codebase.

This commit is contained in:
Julian Storer 2010-01-02 14:55:44 +00:00
parent 8c988319ec
commit 4ed1d791e5
86 changed files with 22712 additions and 22630 deletions

View file

@ -58,7 +58,7 @@ FileOutputStream::FileOutputStream (const File& f,
}
}
buffer = (char*) juce_malloc (jmax (bufferSize_, 16));
buffer.malloc (jmax (bufferSize_, 16));
}
FileOutputStream::~FileOutputStream()
@ -66,7 +66,6 @@ FileOutputStream::~FileOutputStream()
flush();
juce_fileClose (fileHandle);
juce_free (buffer);
}
int64 FileOutputStream::getPosition()