Mercurial > sdl-ios-xcode
diff src/cdrom/macosx/AudioFileReaderThread.c @ 1338:604d73db6802
Removed uses of stdlib.h and string.h
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 09:29:18 +0000 |
parents | 3692456e7b0f |
children | d910939febfa |
line wrap: on
line diff
--- a/src/cdrom/macosx/AudioFileReaderThread.c Tue Feb 07 07:03:29 2006 +0000 +++ b/src/cdrom/macosx/AudioFileReaderThread.c Tue Feb 07 09:29:18 2006 +0000 @@ -546,7 +546,7 @@ { if (afm != NULL) { if (afm->mFileBuffer) { - free (afm->mFileBuffer); + free(afm->mFileBuffer); } SDL_free(afm); @@ -594,7 +594,7 @@ afm->mBufferOffset = inChunkSize; afm->mChunkSize = inChunkSize; afm->mFileLength = inFileLength; - afm->mFileBuffer = (char*) malloc (afm->mChunkSize * 2); + afm->mFileBuffer = (char*) SDL_malloc(afm->mChunkSize * 2); FSGetForkPosition(afm->mForkRefNum, &afm->mAudioDataOffset); assert (afm->mFileBuffer != NULL); return afm;