zpc930 / oolongengine

Automatically exported from code.google.com/p/oolongengine
0 stars 0 forks source link

Memory leaks #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When i run applications on my iPod Touch and press home button, gdb say that 
there a lot of 
memory leaks. The reason is that shell->QuitApplication() not called at exit.

when i write in Delegate,mm
- (void) applicationWillTerminate:(UIApplication *)application
{
    if(!shell->QuitApplication())
        printf("QuitApplication error\n");
}

all bacome ok

sorry for my bad english

Original issue reported on code.google.com by DrKLO....@gmail.com on 20 Jul 2009 at 5:34

GoogleCodeExporter commented 8 years ago
Hi,

might be worth putting a breakpoint in the original line where

if(!shell->QuitApplication())

is invoked. If it's in the dealloc method of a viewcontroller it might be not be
invoked due to some retain release type issues.

Some NSLogging of [propertyname retaincount] can help find the cause.

Cheers,
Donovan. 

Original comment by DonovanH...@gmail.com on 22 Jul 2009 at 10:22

GoogleCodeExporter commented 8 years ago
I put NSLog into dealloc function in Delegate.mm, compile with debug, and when 
i 
quit application i see nothing in gdb console. When i put in
 - (void) applicationWillTerminate:(UIApplication *)application
all was ok, i saw line in gdb console

Original comment by DrKLO....@gmail.com on 23 Jul 2009 at 7:11