# HG changeset patch # User dadubrow # Date 1250015224 18000 # Node ID 2bdd901b072d8eb20d575dd9449ddc6c78df4f05 # Parent 019f4256a97306a4e9d19a5a1e77db58b212828f SF bugzilla 221 - delete cleanup object before returning non NULL createError diff -r 019f4256a973 -r 2bdd901b072d templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/Symbian-EXE/src/Basename.cpp --- a/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/Symbian-EXE/src/Basename.cpp Tue Aug 11 12:09:14 2009 -0500 +++ b/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/Symbian-EXE/src/Basename.cpp Tue Aug 11 13:27:04 2009 -0500 @@ -63,7 +63,10 @@ // Create output console TRAPD(createError, console = Console::NewL(KTextConsoleTitle, TSize(KConsFullScreen,KConsFullScreen))); if (createError) + { + delete cleanup; return createError; + } // Run application code inside TRAP harness, wait keypress when terminated TRAPD(mainError, DoStartL());