VirtualBox

Changeset 67233 in vbox for trunk


Ignore:
Timestamp:
Jun 2, 2017 11:33:27 AM (7 years ago)
Author:
vboxsync
Message:

Main/Medium::i_addRawToFss: Removed unnecessary lock list Clear call, the destructor does the same thing and also preserve error info.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r67232 r67233  
    62586258                    if (RT_FAILURE(vrc))
    62596259                        rc = setErrorBoth(VBOX_E_FILE_ERROR, vrc, tr("Failed to add '%s' to output (%Rrc)"), aFilename, vrc);
    6260 
    62616260                }
    62626261                else
     
    62726271    }
    62736272    catch (HRESULT hrc2) { rc = hrc2; }
    6274 
    6275     /* Everything is explicitly unlocked when the task exits,
    6276      * as the task destruction also destroys the source chain. */
    6277 
    6278     /* Make sure the source chain is released early, otherwise it can
    6279      * lead to deadlocks with concurrent IAppliance activities. */
    6280     SourceMediumLockList.Clear();
    62816273
    62826274    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette