startupservices/SplashScreen/src/SplashScreen.cpp
changeset 77 b01c07dfcf84
parent 72 56a7be608841
--- a/startupservices/SplashScreen/src/SplashScreen.cpp	Wed Sep 29 15:24:56 2010 +0300
+++ b/startupservices/SplashScreen/src/SplashScreen.cpp	Thu Oct 07 06:25:45 2010 +0300
@@ -391,6 +391,8 @@
 	CWindow::ConstructL(aRect, aParent);
 
     TParse* fp = new(ELeave) TParse();
+	CleanupStack::PushL( fp );
+
     fp->Set(KSplashBitmapName, &KDC_APP_BITMAP_DIR, NULL);
     TRACES1("CMainWindow::ConstructL(): Load Bitmap from %S", &fp->FullName());
 
@@ -414,7 +416,8 @@
         TRACES("CMainWindow::ConstructL(): Image not found");
         }
 
-    delete fp;
+   
+	CleanupStack::PopAndDestroy(fp);
 
     TRACES("CMainWindow::ConstructL(): End");
 	}