- Timestamp:
- Mar 21, 2010 11:26:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r26574 r27565 988 988 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns); 989 989 990 slirp_term(pThis->pNATState); 991 slirp_deregister_statistics(pThis->pNATState, pDrvIns); 992 pThis->pNATState = NULL; 990 if (pThis->pNATState) 991 { 992 slirp_term(pThis->pNATState); 993 slirp_deregister_statistics(pThis->pNATState, pDrvIns); 993 994 #ifdef VBOX_WITH_STATISTICS 994 995 # define DRV_PROFILE_COUNTER(name, dsc) DEREGISTER_COUNTER(name, pThis) … … 996 997 # include "counters.h" 997 998 #endif 999 pThis->pNATState = NULL; 1000 } 998 1001 } 999 1002
Note:
See TracChangeset
for help on using the changeset viewer.