VirtualBox

Changeset 86617 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 16, 2020 10:47:55 PM (4 years ago)
Author:
vboxsync
Message:

Main/tstVBoxAPIXPCOM.cpp: Fixed another leak, this time the array returned by IMachine->Unregister. bugref:9841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstVBoxAPIXPCOM.cpp

    r86616 r86617  
    428428                       NS_FAILED(rc) ? rc : resultCode);
    429429        }
     430
     431        /* Release the media array: */
     432        for (PRUint32 i = 0; i < cMedia; i++)
     433            if (aMedia[i])
     434                aMedia[i]->Release();
     435        nsMemory::Free(aMedia);
    430436    }
    431437}
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