VirtualBox

Changeset 77666 in vbox for trunk


Ignore:
Timestamp:
Mar 12, 2019 3:41:14 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129300
Message:

Main/HostDnsServiceDarwin: Fixed shutting down procedure by making sure fStop is initialized. Also added a couple of checks / assertions.

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostDnsService.cpp

    r77506 r77666  
    279279void HostDnsMonitorProxy::uninit()
    280280{
    281     m->monitor->shutdown();
    282     delete m;
    283     m = NULL;
     281    if (m)
     282    {
     283        m->monitor->shutdown();
     284        delete m;
     285        m = NULL;
     286    }
    284287}
    285288
  • trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp

    r76553 r77666  
    3434struct HostDnsServiceDarwin::Data
    3535{
     36    Data()
     37        : m_fStop(false) { }
     38
    3639    SCDynamicStoreRef m_store;
    3740    CFRunLoopSourceRef m_DnsWatcher;
     
    252255{
    253256    HostDnsServiceDarwin::Data *pThis = static_cast<HostDnsServiceDarwin::Data *>(info);
     257    AssertPtrReturnVoid(pThis);
    254258    pThis->m_fStop = true;
    255259}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette