- Timestamp:
- Jun 17, 2010 6:45:15 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62821
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumImpl.cpp
r30277 r30292 1901 1901 STDMETHODIMP Medium::Close() 1902 1902 { 1903 AutoCaller autoCaller(this); 1904 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1905 1903 1906 // we're accessing parent/child and backrefs, so lock the tree first, then ourselves 1904 1907 AutoMultiWriteLock2 multilock(&m->pVirtualBox->getMediaTreeLockHandle(), … … 1941 1944 // make a copy of VirtualBox pointer which gets nulled by uninit() 1942 1945 ComObjPtr<VirtualBox> pVirtualBox(m->pVirtualBox); 1946 1947 // leave the AutoCaller, as otherwise uninit() will simply hang 1948 autoCaller.release(); 1943 1949 1944 1950 /* Keep the locks held until after uninit, as otherwise the consistency … … 3131 3137 MediumLockList &mediumLockList) 3132 3138 { 3139 AutoCaller autoCaller(this); 3140 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 3141 3133 3142 HRESULT rc = S_OK; 3134 3143 … … 3846 3855 { 3847 3856 AssertReturn(aProgress != NULL || aWait == true, E_FAIL); 3857 3858 AutoCaller autoCaller(this); 3859 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 3848 3860 3849 3861 HRESULT rc = S_OK; … … 4609 4621 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 4610 4622 4623 AutoCaller targetCaller(pTarget); 4624 AssertComRCReturnRC(targetCaller.rc()); 4625 4611 4626 HRESULT rc = S_OK; 4612 4627 ComObjPtr <Progress> pProgress;
Note:
See TracChangeset
for help on using the changeset viewer.