VirtualBox

Changeset 76239 in vbox for trunk


Ignore:
Timestamp:
Dec 14, 2018 6:54:20 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
127509
Message:

Main: bugref:6913: don't try to notify changes related to NULL medium objects

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

Legend:

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

    r76238 r76239  
    90879087             * (chain->parent() is source's parent). Depth check above. */
    90889088            pTarget->i_deparent();
    9089             if (task.NotifyAboutChanges())
    9090                 pMediumsForNotify.insert(task.mParentForTarget);
    90919089            pTarget->i_setParent(task.mParentForTarget);
    90929090            if (task.mParentForTarget)
     9091            {
    90939092                i_deparent();
     9093                if (task.NotifyAboutChanges())
     9094                    pMediumsForNotify.insert(task.mParentForTarget);
     9095            }
    90949096
    90959097            /* then, register again */
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r76238 r76239  
    17911791                MediumAttachment *pAttach = *it;
    17921792                Medium *pMedium = pAttach->i_getMedium();
     1793                if (!pMedium)
     1794                    continue;
    17931795
    17941796                bool fFound = false;
     
    22852287                MediumAttachment *pAttach = *it;
    22862288                Medium *pMedium = pAttach->i_getMedium();
     2289                if (!pMedium)
     2290                    continue;
    22872291
    22882292                bool fFound = false;
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