Commit 1597397
committed
Installer/vboxapisetup.py: Delete the IHost and IVirtualBox objects once no
longer needed and before shutting down XPCOM (setup.py:oVBoxMgr.deinit() ->
xpcom._xpcom.DeinitCOM() -> deinitVBoxPython() -> NS_ShutdownXPCOM()) which
shuts down the interface manager (XPTI_FreeInterfaceInfoManager() ->
xptiInterfaceInfoManager::FreeInterfaceInfoManager()). Otherwise during
garbage collection later when these objects are deleted we will call back
into the interface manager (PyXPCOM_TypeObject::Py_dealloc ->
Py_nsIInterfaceInfo::~Py_nsIInterfaceInfo -> Py_nsISupports::~Py_nsISupports()
-> Py_nsISupports::SafeRelease() -> ... -> xptiInterfaceInfo::Release() ->
xptiInterfaceInfoManager::GetInfoMonitor() ->
xptiInterfaceInfoManager::GetInterfaceInfoManagerNoAddRef()) after it
has been free'd and trigger an exception and python stack trace.
svn:sync-xref-src-repo-rev: r1733691 parent 71b99d6 commit 1597397
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
0 commit comments