Changeset 60391 in vbox for trunk/src/VBox
- Timestamp:
- Apr 8, 2016 9:29:58 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r60389 r60391 5 5 6 6 /* 7 * Copyright (C) 2011-201 4Oracle Corporation7 * Copyright (C) 2011-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1611 1611 else 1612 1612 { 1613 Service * apService = NULL;1613 Service *pService = NULL; 1614 1614 /* No exceptions may propagate outside. */ 1615 try { 1616 apService = new Service(pTable->pHelpers); 1617 } catch (int rcThrown) { 1615 try 1616 { 1617 pService = new Service(pTable->pHelpers); 1618 } 1619 catch (int rcThrown) 1620 { 1618 1621 rc = rcThrown; 1619 } catch (...) { 1620 rc = VERR_UNRESOLVED_ERROR; 1622 } 1623 catch(std::bad_alloc &) 1624 { 1625 rc = VERR_NO_MEMORY; 1621 1626 } 1622 1627 … … 1640 1645 1641 1646 /* Service specific initialization. */ 1642 pTable->pvService = apService; 1647 pTable->pvService = pService; 1648 } 1649 else 1650 { 1651 if (pService) 1652 { 1653 delete pService; 1654 pService = NULL; 1655 } 1643 1656 } 1644 1657 }
Note:
See TracChangeset
for help on using the changeset viewer.