So I am using App42 with Marmalade and SaveUserScore is leaking memory. I basically took everything else out of my code but submitting a score with ScoreBoardService::SaveUserScore() and I am getting an IwAssert failure (MEMORY, 2356) from Marmalade upon Marmalade cleaning up the memory. I am terminating every service that I am using and also cleaning up the callback function.
gameService->Terminate();
scoreboardService->Terminate();
rewardService->Terminate();
scoreService->Terminate();
if(callbackFunction)
{
delete callbackFunction;
callbackFunction = NULL;
}
Here is an image of the failure.
http://imgur.com/ndaQuT7
I believe that this failure only happens when there is memory that hasn't been cleaned up when Marmalade goes through with its own memory clean up. Let me know if there is something that I need to do.
Thanks,
Mike Sawayda