Fix Mac build issues (clang 6.0 compiling x86_64)

This commit is contained in:
Alexander Gessler
2015-04-17 06:42:58 +02:00
parent d12868adc4
commit f435712273
2 changed files with 3 additions and 2 deletions

View File

@@ -140,11 +140,11 @@ zlib_filefunc_def IOSystem2Unzip::get(IOSystem* pIOHandler) {
ZipFile::ZipFile(size_t size) : m_Size(size) {
ai_assert(m_Size != 0);
m_Buffer = std::malloc(m_Size);
m_Buffer = malloc(m_Size);
}
ZipFile::~ZipFile() {
std::free(m_Buffer);
free(m_Buffer);
m_Buffer = NULL;
}