Changeset 30528 in vbox
- Timestamp:
- Jun 30, 2010 2:16:44 PM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp
r28800 r30528 840 840 RTMemFree(pUrb); 841 841 } 842 if (pRh->Hub.pszName) 843 { 844 RTStrFree(pRh->Hub.pszName); 845 pRh->Hub.pszName = NULL; 846 } 842 847 RTCritSectDelete(&pRh->CritSect); 843 848 } … … 851 856 static DECLCALLBACK(int) vusbRhConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 852 857 { 853 LogFlow(("vusbRhConstruct: \n"));858 LogFlow(("vusbRhConstruct: Instance %d\n", pDrvIns->iInstance)); 854 859 PVUSBROOTHUB pThis = PDMINS_2_DATA(pDrvIns, PVUSBROOTHUB); 855 860 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); … … 894 899 pThis->Hub.cDevices = 0; 895 900 pThis->Hub.Dev.pHub = &pThis->Hub; 901 RTStrAPrintf(&pThis->Hub.pszName, "RootHub#%d", pDrvIns->iInstance); 896 902 /* misc */ 897 903 pThis->pDrvIns = pDrvIns; -
trunk/src/VBox/VMM/PDMUsb.cpp
r28800 r30528 573 573 pUsbIns->iInstance = iInstance; 574 574 pUsbIns->pvInstanceDataR3 = &pUsbIns->achInstanceData[0]; 575 pUsbIns->pszName = RTStrDup(pUsbDev->pReg->szName); 575 576 576 577 /* … … 986 987 pUsbIns->u32Version = 0; 987 988 pUsbIns->pReg = NULL; 989 if (pUsbIns->pszName) 990 { 991 RTStrFree(pUsbIns->pszName); 992 pUsbIns->pszName = NULL; 993 } 988 994 CFGMR3RemoveNode(pUsbIns->Internal.s.pCfgDelete); 989 995 MMR3HeapFree(pUsbIns);
Note:
See TracChangeset
for help on using the changeset viewer.