bool Myth::ProfileDelete() { bool bResult = false; HardwareProfile profile; LOG(VB_GENERAL, LOG_NOTICE, "Profile Deletion..."); profile.GenerateUUIDs(); bResult = profile.DeleteProfile(); if (bResult) LOG(VB_GENERAL, LOG_NOTICE, "Profile Deleted."); return bResult; }
bool Myth::ProfileDelete() { bool bResult = false; HardwareProfile *profile = new HardwareProfile(); if (profile) { LOG(VB_GENERAL, LOG_NOTICE, "Profile Deletion..."); profile->GenerateUUIDs(); bResult = profile->DeleteProfile(); if (bResult) LOG(VB_GENERAL, LOG_NOTICE, "Profile Deleted."); } delete profile; return bResult; }