VirtualBox

Ignore:
Timestamp:
Jan 11, 2017 3:30:20 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112783
Message:

xpcom/server.cpp: need to restore the VirtualBox object refcount if it turns out to be still (more precisely again) used

File:
1 edited

Legend:

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

    r65246 r65247  
    262262                 * but before it started to process it. */
    263263                LogRel(("Destruction is canceled (refcnt=%d).\n", count));
     264                /* Important: restore previous refcount, we decreased it
     265                 * above based on the assumption that the object is unused! */
     266                sInstance->AddRef();
    264267            }
    265268
Note: See TracChangeset for help on using the changeset viewer.

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