Changeset 19098 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 22, 2009 9:08:07 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46259
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/VBoxXPCOMC.cpp
r19081 r19098 37 37 static ISession *Session = NULL; 38 38 static IVirtualBox *Ivirtualbox = NULL; 39 static nsIServiceManager *serviceManager = NULL;40 39 static nsIComponentManager *manager = NULL; 41 40 static nsIEventQueue *eventQ = NULL; … … 84 83 *ppSession = NULL; 85 84 *ppVirtualBox = NULL; 86 87 /** @todo r=bird: what exactly is this supposed to acomplish? */88 Session = *ppSession;89 Ivirtualbox = *ppVirtualBox;90 85 91 86 rc = com::Initialize(); … … 138 133 139 134 Log(("Cbinding: ISession object created.\n")); 135 136 /* Store ppSession & ppVirtualBox so that VBoxComUninitialize 137 * can later take care of them while cleanup 138 */ 139 Session = *ppSession; 140 Ivirtualbox = *ppVirtualBox; 141 140 142 } 141 143 … … 159 161 if (manager) 160 162 NS_RELEASE(manager); // decrement refcount 161 if (serviceManager)162 NS_RELEASE(serviceManager); // decrement refcount163 163 com::Shutdown(); 164 164 Log(("Cbinding: Cleaned up the created IVirtualBox and ISession Objects.\n"));
Note:
See TracChangeset
for help on using the changeset viewer.