Changeset 8510 in vbox
- Timestamp:
- Apr 30, 2008 2:37:45 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30403
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/darwin/iokit.cpp
r8485 r8510 503 503 if (pNotify->NotifyRLSrc) 504 504 { 505 CFRunLoopAddSource(CFRunLoopGetCurrent(), pNotify->NotifyRLSrc, CFSTR(VBOX_IOKIT_MODE_STRING)); 505 CFRunLoopRef RunLoopRef = CFRunLoopGetCurrent(); 506 CFRetain(RunLoopRef); /* Workaround for crash when cleaning up the TLS / runloop((sub)mode). See #2807. */ 507 CFRunLoopAddSource(RunLoopRef, pNotify->NotifyRLSrc, CFSTR(VBOX_IOKIT_MODE_STRING)); 506 508 507 509 /* … … 540 542 IOObjectRelease(pNotify->AttachIterator); 541 543 } 542 CFRunLoopRemoveSource( CFRunLoopGetCurrent(), pNotify->NotifyRLSrc, CFSTR(VBOX_IOKIT_MODE_STRING));544 CFRunLoopRemoveSource(RunLoopRef, pNotify->NotifyRLSrc, CFSTR(VBOX_IOKIT_MODE_STRING)); 543 545 } 544 546 IONotificationPortDestroy(pNotify->NotifyPort);
Note:
See TracChangeset
for help on using the changeset viewer.