--- 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());