VirtualBox

Changeset 49763 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Dec 3, 2013 7:33:44 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91070
Message:

Main/include/Wrapper.h: fix reference counting issues for outgoing iface arrays, the shorter way to write the code handles this automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/Wrapper.h

    r49652 r49763  
    351351        if (mDst)
    352352        {
    353             com::SafeIfaceArray<A> outArray(mArray.size());
    354             for (size_t i = 0; i < mArray.size(); i++)
    355                 outArray[i] = mArray[i];
     353            com::SafeIfaceArray<A> outArray(mArray);
    356354            outArray.detachTo(ComSafeArrayOutArg(mDst));
    357355        }
Note: See TracChangeset for help on using the changeset viewer.

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