Changeset 49389 in vbox
- Timestamp:
- Nov 5, 2013 1:32:12 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 90435
- Location:
- trunk/src/VBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r49353 r49389 67 67 /** Our global session object which is also used in the 68 68 * signal handler to abort operations properly. */ 69 static ComPtr<IGuestSession> g_pGuestSession ;69 static ComPtr<IGuestSession> g_pGuestSession = NULL; 70 70 71 71 /** … … 700 700 701 701 pCtx->pGuestSession.setNull(); 702 g_pGuestSession.setNull();703 } 704 702 } 703 704 g_pGuestSession.setNull(); 705 705 if (pCtx->handlerArg.session) 706 706 CHECK_ERROR(pCtx->handlerArg.session, UnlockMachine()); … … 711 711 RTStrFree(pCtx->ppaArgv[i]); 712 712 RTMemFree(pCtx->ppaArgv); 713 pCtx->iArgc = 0; 713 714 } 714 715 -
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r49349 r49389 108 108 HRESULT GuestFile::FinalConstruct(void) 109 109 { 110 LogFlowThisFunc (("\n"));110 LogFlowThisFuncEnter(); 111 111 return BaseFinalConstruct(); 112 112 } … … 225 225 void GuestFile::uninit(void) 226 226 { 227 LogFlowThisFunc (("\n"));227 LogFlowThisFuncEnter(); 228 228 229 229 /* Enclose the state transition Ready->InUninit->NotReady. */ … … 235 235 baseUninit(); 236 236 237 mEventSource->UnregisterListener(mLocalListener); 238 unconst(mEventSource).setNull(); 237 if (!mEventSource.isNull()) 238 { 239 mEventSource->UnregisterListener(mLocalListener); 240 241 mLocalListener.setNull(); 242 unconst(mEventSource).setNull(); 243 } 239 244 #endif 240 245 -
trunk/src/VBox/Main/src-client/GuestImpl.cpp
r47469 r49389 159 159 #ifdef DEBUG 160 160 ULONG cRefs = itSessions->second->AddRef(); 161 LogFlowThisFunc((" pSession=%p, cRefs=%RU32\n", (GuestSession *)itSessions->second, cRefs > 0? cRefs - 1 : 0));161 LogFlowThisFunc(("sessionID=%RU32, cRefs=%RU32\n", itSessions->first, cRefs > 1 ? cRefs - 1 : 0)); 162 162 itSessions->second->Release(); 163 163 #endif -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r49350 r49389 279 279 baseUninit(); 280 280 281 mEventSource->UnregisterListener(mLocalListener); 282 283 mLocalListener.setNull(); 284 unconst(mEventSource).setNull(); 281 if (!mEventSource.isNull()) 282 { 283 mEventSource->UnregisterListener(mLocalListener); 284 285 mLocalListener.setNull(); 286 unconst(mEventSource).setNull(); 287 } 285 288 #endif 286 289 -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r49359 r49389 145 145 HRESULT GuestSession::FinalConstruct(void) 146 146 { 147 LogFlowThisFunc (("\n"));147 LogFlowThisFuncEnter(); 148 148 return BaseFinalConstruct(); 149 149 } … … 315 315 baseUninit(); 316 316 317 mEventSource->UnregisterListener(mLocalListener); 318 unconst(mEventSource).setNull(); 319 317 if (!mEventSource.isNull()) 318 { 319 mEventSource->UnregisterListener(mLocalListener); 320 321 mLocalListener.setNull(); 322 unconst(mEventSource).setNull(); 323 } 320 324 #endif /* VBOX_WITH_GUEST_CONTROL */ 321 325 LogFlowFuncLeaveRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.