- Timestamp:
- Jan 27, 2011 9:52:23 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69674
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r35722 r35727 1041 1041 ComPtr<IEventSource> es; 1042 1042 CHECK_ERROR(console, COMGETTER(EventSource)(es.asOutParam())); 1043 consoleListener.createObject(); 1043 consoleListener.createObject(); 1044 1044 consoleListener->init(new ConsoleEventListener()); 1045 1045 com::SafeArray<VBoxEventType_T> eventTypes; … … 1279 1279 if (!es.isNull()) 1280 1280 CHECK_ERROR(es, UnregisterListener(vboxListener)); 1281 vboxListener ->Release();1281 vboxListener.setNull(); 1282 1282 } 1283 1283 … … 1289 1289 if (!es.isNull()) 1290 1290 CHECK_ERROR(es, UnregisterListener(consoleListener)); 1291 consoleListener ->Release();1291 consoleListener.setNull(); 1292 1292 } 1293 1293 … … 1299 1299 if (!pES.isNull()) 1300 1300 CHECK_ERROR(pES, UnregisterListener(vboxClientListener)); 1301 vboxClientListener ->Release();1301 vboxClientListener.setNull(); 1302 1302 } 1303 1303 -
trunk/src/VBox/Main/webservice/vboxweb.cpp
r35722 r35727 937 937 ComObjPtr<VirtualBoxClientEventListenerImpl> clientListener; 938 938 clientListener.createObject(); 939 clientListener->init(new VirtualBoxClientEventListener()); 939 clientListener->init(new VirtualBoxClientEventListener()); 940 940 vboxClientListener = clientListener; 941 941 com::SafeArray<VBoxEventType_T> eventTypes; … … 994 994 if (!pES.isNull()) 995 995 CHECK_ERROR(pES, UnregisterListener(vboxClientListener)); 996 vboxClientListener ->Release();996 vboxClientListener.setNull(); 997 997 } 998 998 … … 1972 1972 return SOAP_OK; 1973 1973 } 1974
Note:
See TracChangeset
for help on using the changeset viewer.