diff -r 1f1fcd7e941c -r 8dde790cab74 cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp --- a/cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp Thu May 13 23:17:48 2010 +0300 +++ b/cmmanager/cpdestinationplugin/src/cpdestinationentryitem.cpp Fri May 14 10:52:16 2010 +0300 @@ -571,6 +571,7 @@ if (0 == destination.compare(dest->name())) { destination = hbTrId("txt_occ_info_name_already_in_use"); retVal = false; + delete dest; break; } delete dest; @@ -692,7 +693,6 @@ try { cmm = new CmManagerShim(); if (isDestinationNameValid(destinationName, cmm)) { - cmm = new CmManagerShim(); destination = cmm->destination(mDestinationId); destination->setName(destinationName); destination->update();