brandingserver/bsserver/cbsbrandhandler.cpp
changeset 2 89455bbf90d8
parent 0 e6b17d312c8b
child 19 7e0cc21eb164
child 42 cfd5c2994f10
--- a/brandingserver/bsserver/cbsbrandhandler.cpp	Thu Jan 07 12:56:16 2010 +0200
+++ b/brandingserver/bsserver/cbsbrandhandler.cpp	Mon Jan 18 20:33:04 2010 +0200
@@ -210,6 +210,7 @@
 	if (iLanguage >= 100)
 		User::LeaveIfError (KErrNotFound);
 	HBufC* fileName = GetTextL( aId );
+	CleanupStack :: PushL (fileName);
 
     TBuf<KLangBufLength> buffer;
 // append leading zero only if language code is <10.
@@ -239,6 +240,8 @@
 		TRACE( T_LIT( "CBSBrandHandler::GetFileL found in default brand") );
 	    
 	    }
+	
+	CleanupStack :: PopAndDestroy (fileName);
 
 	aFile = file;
     TRACE( T_LIT( "CBSBrandHandler::GetFileL end") );