VirtualBox

Changeset 42019 in vbox


Ignore:
Timestamp:
Jul 4, 2012 11:05:22 AM (13 years ago)
Author:
vboxsync
Message:

GuestLib: fix uninit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/Init.cpp

    r42004 r42019  
    176176    VbglPhysHeapTerminate ();
    177177
    178     RT_ZERO(g_vbgldata);
    179 
    180178    return;
    181179}
     
    282280# endif
    283281
    284     vbglTerminateCommon ();
    285282    /* driver open could fail, which does not prevent VbglInit from succeeding,
    286283     * close the driver only if it is opened */
     
    290287    g_vbgldata.mutexDriverInit = NIL_RTSEMFASTMUTEX;
    291288
     289    /* note: do vbglTerminateCommon as a last step since it zeroez up the g_vbgldata
     290     * conceptually, doing vbglTerminateCommon last is correct
     291     * since this is the reverse order to how init is done */
     292    vbglTerminateCommon ();
     293
    292294    return;
    293295}
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