OpenAL causing leaks in my iPhone game. Help appreciated

Posted by AptoTech on Stack Overflow See other posts from Stack Overflow or by AptoTech
Published on 2010-03-27T10:17:52Z Indexed on 2010/03/27 10:23 UTC
Read the original article Hit count: 392

Hi,

I am integrating OpenAL in my iPhone game from code I found in this post, but the compiler gave me an error on this line of code:
unsigned char *outData = malloc(fileSize);, so I changed it to this:
unsigned char *outData = (unsigned char*) malloc(fileSize);.

This got rid of the compiler errors, but seems to have thrown up two leaks:
Malloc 32 Bytes 0x505cb40 AudioToolbox SimAggregateDevice::CreateAggregateDevice(__CFString const*, __CFString const*, unsigned long&)

and
NSCFDictionary 0x505be30 64 AudioToolbox SimAggregateDevice::CreateAggregateDevice(__CFString const*, __CFString const*, unsigned long&)

Is this due to me changing the unsigned char line? I would be very grateful if someone could help me to remove these leaks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about openal