started moving to custom malloc/free

This commit is contained in:
aap
2017-08-24 15:10:34 +02:00
parent 6d38dea0d9
commit 040bb6cb51
22 changed files with 675 additions and 580 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ readTGA(const char *afilename)
uint32 length;
uint8 *data = getFileContents(filename, &length);
assert(data != nil);
free(filename);
rwFree(filename);
StreamMemory file;
file.open(data, length);
file.read(&header, sizeof(header));