--- a/phoneclientserver/phoneserver/src/standard/cphsrvsession.cpp Mon Oct 04 15:57:13 2010 +0300
+++ b/phoneclientserver/phoneserver/src/standard/cphsrvsession.cpp Fri Oct 15 13:21:28 2010 +0300
@@ -138,10 +138,8 @@
// Add to container (takes ownership)
iContainer->AddL( subSession );
- if (function != EPhoneServerImageHandlerSubSessionOpen )
- {
- CleanupStack::Pop( subSession );
- }
+ CleanupStack::Pop( subSession );
+
// Get a handle for the object
const TInt handle = iObjectIx->AddL( subSession );