VirtualBox

Ignore:
Timestamp:
Feb 9, 2017 4:50:47 PM (8 years ago)
Author:
vboxsync
Message:

HostServices/GuestProperties: free all properties during uninit()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestProperties/service.cpp

    r65102 r65706  
    15851585    return rc;
    15861586}
     1587
     1588/**
     1589 * @callback_method_impl{FNRTSTRSPACECALLBACK, Destroys Property.}
     1590 */
     1591static DECLCALLBACK(int) destroyProperty(PRTSTRSPACECORE pStr, void *pvUser)
     1592{
     1593    RT_NOREF(pvUser);
     1594    Property *pProp = RT_FROM_MEMBER(pStr, struct Property, mStrCore);
     1595    delete pProp;
     1596    return 0;
     1597}
     1598
    15871599#endif
    15881600
     
    16031615        mhReqQNotifyHost = NIL_RTREQQUEUE;
    16041616        mhThreadNotifyHost = NIL_RTTHREAD;
     1617        RTStrSpaceDestroy(&mhProperties, destroyProperty, NULL);
     1618        mhProperties = NULL;
    16051619    }
    16061620#endif
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