diff -r 6ac064bb53eb -r eab116a48b80 upnpavcontroller/upnpavcontrollerserver/src/upnpavcontrollerimpl.cpp --- a/upnpavcontroller/upnpavcontrollerserver/src/upnpavcontrollerimpl.cpp Tue Sep 21 11:21:11 2010 +0300 +++ b/upnpavcontroller/upnpavcontrollerserver/src/upnpavcontrollerimpl.cpp Mon Oct 04 13:32:20 2010 +0300 @@ -440,8 +440,10 @@ { CUpnpAVDevice* tempDev = CUpnpAVDevice::NewL( *devList[i] ); + CleanupStack::PushL( tempDev ); // Ownership of tempDev transferred tempList->AppendDeviceL( *tempDev ); + CleanupStack::Pop( tempDev ); } } }