Changeset 18998 in vbox for trunk/src/VBox/Main/cbinding/VBoxXPCOMC.cpp
- Timestamp:
- Apr 17, 2009 4:27:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/VBoxXPCOMC.cpp
r18895 r18998 35 35 using namespace std; 36 36 37 static ISession *Session; 38 static IVirtualBox *Ivirtualbox; 39 static nsIServiceManager *serviceManager; 40 static nsIComponentManager *manager; 37 static ISession *Session = NULL; 38 static IVirtualBox *Ivirtualbox = NULL; 39 static nsIServiceManager *serviceManager = NULL; 40 static nsIComponentManager *manager = NULL; 41 static nsIEventQueue *eventQ = NULL; 41 42 42 43 static void VBoxComUninitialize(void); … … 98 99 { 99 100 Log(("Cbinding: Could not get component manager! rc=%Rhrc\n",rc)); 101 VBoxComUninitialize(); 102 return; 103 } 104 105 rc = NS_GetMainEventQ (&eventQ); 106 if (NS_FAILED(rc)) 107 { 108 Log(("Cbinding: Could not get xpcom event queue! rc=%Rhrc\n",rc)); 100 109 VBoxComUninitialize(); 101 110 return; … … 136 145 if (Ivirtualbox) 137 146 NS_RELEASE(Ivirtualbox); // decrement refcount 147 if (eventQ) 148 NS_RELEASE(eventQ); // decrement refcount 138 149 if (manager) 139 150 NS_RELEASE(manager); // decrement refcount … … 144 155 } 145 156 157 static void 158 VBoxGetEventQueue(nsIEventQueue **eventQueue) 159 { 160 *eventQueue = eventQ; 161 } 162 146 163 static uint32_t 147 164 VBoxVersion(void) … … 175 192 VBoxUtf8ToUtf16, 176 193 194 VBoxGetEventQueue, 195 177 196 VBOX_XPCOMC_VERSION 178 197 };
Note:
See TracChangeset
for help on using the changeset viewer.