- Timestamp:
- Dec 6, 2018 3:05:44 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r69500 r76017 1501 1501 #ifdef RT_OS_DARWIN 1502 1502 /* Cleanup the DNS watcher. */ 1503 CFRunLoopRef hRunLoopMain = CFRunLoopGetMain(); 1504 CFRetain(hRunLoopMain); 1505 CFRunLoopRemoveSource(hRunLoopMain, pThis->hRunLoopSrcDnsWatcher, kCFRunLoopCommonModes); 1506 CFRelease(hRunLoopMain); 1507 CFRelease(pThis->hRunLoopSrcDnsWatcher); 1508 pThis->hRunLoopSrcDnsWatcher = NULL; 1503 if (pThis->hRunLoopSrcDnsWatcher != NULL) 1504 { 1505 CFRunLoopRef hRunLoopMain = CFRunLoopGetMain(); 1506 CFRetain(hRunLoopMain); 1507 CFRunLoopRemoveSource(hRunLoopMain, pThis->hRunLoopSrcDnsWatcher, kCFRunLoopCommonModes); 1508 CFRelease(hRunLoopMain); 1509 CFRelease(pThis->hRunLoopSrcDnsWatcher); 1510 pThis->hRunLoopSrcDnsWatcher = NULL; 1511 } 1509 1512 #endif 1510 1513 }
Note:
See TracChangeset
for help on using the changeset viewer.