--- a/upnpavcontroller/upnpxmlparser/src/upnpxmlparserlite.cpp Tue Sep 21 11:21:11 2010 +0300
+++ b/upnpavcontroller/upnpxmlparser/src/upnpxmlparserlite.cpp Mon Oct 04 13:32:20 2010 +0300
@@ -289,15 +289,19 @@
CleanupStack::PushL( tempBuf );
HBufC* buf = HBufC::NewL( iFormatString->Length() +
tempBuf->Length() );
+ CleanupStack::PushL( buf );
buf->Des().Format( *iFormatString, tempBuf );
+ obj->SetTitleL( buf );
+ CleanupStack::Pop( buf );
CleanupStack::PopAndDestroy( tempBuf );
- obj->SetTitleL( buf );
}
else
{
HBufC* buf = HBufC::NewL( iTitleBuf->Length() );
+ CleanupStack::PushL( buf );
buf->Des().Copy( *iTitleBuf );
obj->SetTitleL( buf );
+ CleanupStack::Pop( buf );
}
delete iTitleBuf; iTitleBuf = NULL;
}