- Timestamp:
- Nov 17, 2009 4:02:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r24704 r24727 2726 2726 aDevice, aControllerPort, aControllerName); 2727 2727 2728 ComObjPtr<Medium> oldmedium = pAttach->medium(); 2729 DeviceType_T mediumType = pAttach->type(); 2728 2730 2729 2731 if (pAttach->isImplicit()) … … 2744 2746 alock.leave(); 2745 2747 2746 ComObjPtr<Medium> hd = pAttach->medium(); 2747 rc = hd->deleteStorageAndWait(); 2748 rc = oldmedium->deleteStorageAndWait(); 2748 2749 2749 2750 alock.enter(); … … 2760 2761 * still refers to the original and is not valid for the copy */ 2761 2762 mMediaData->mAttachments.remove(pAttach); 2763 2764 /* For non-hard disk media, detach straight away. */ 2765 if (mediumType != DeviceType_HardDisk && !oldmedium.isNull()) 2766 oldmedium->detachFrom(mData->mUuid); 2762 2767 2763 2768 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.