Renamed MemBuffer::free() to dealloc() in order to better support

malloc debugging libraries like mpatrol.

committer: mfx <mfx> 983109777 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2001-02-25 14:02:57 +00:00
parent a30bb7db20
commit 4a142f35f5
6 changed files with 24 additions and 20 deletions
+3 -3
View File
@@ -44,10 +44,10 @@ MemBuffer::MemBuffer(unsigned size) :
MemBuffer::~MemBuffer()
{
this->free();
this->dealloc();
}
void MemBuffer::free()
void MemBuffer::dealloc()
{
if (alloc_ptr)
::free(alloc_ptr);
@@ -69,7 +69,7 @@ unsigned MemBuffer::getSize() const
void MemBuffer::alloc(unsigned size, unsigned base_offset)
{
#if 0
this->free();
this->dealloc();
#else
// don't automaticlly free a used buffer
#endif