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
+5 -1
View File
@@ -44,7 +44,7 @@ public:
void allocForCompression(unsigned uncompressed_size);
void allocForUncompression(unsigned uncompressed_size);
void free();
void dealloc();
const unsigned char *getBuf() const { return ptr; }
unsigned getSize() const;
@@ -66,10 +66,14 @@ private:
MemBuffer& operator= (MemBuffer const &); // { return *this; }
// disable dynamic allocation
#ifndef new
static void *operator new (size_t); // {}
static void *operator new[] (size_t); // {}
#endif
#ifndef delete
//static void operator delete (void *) {}
//static void operator delete[] (void *) {}
#endif
};
#endif /* already included */