diff -r 12bc758d6a02 -r 25b8d29b7c59 phoneclientserver/phoneserver/src/standard/cphsrvsession.cpp --- 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 );