[haiku-commits] haiku: hrev46933 - src/kits/device

  • From: stpere@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 26 Feb 2014 03:34:03 +0100 (CET)

hrev46933 adds 1 changeset to branch 'master'
old head: 6e536502db54b4d43c31b2331757b813e65d6718
new head: 75a80fb34167f42bdcc1d0e955c186122d3dda3d
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=75a80fb+%5E6e53650

----------------------------------------------------------------------------

75a80fb: Use delete[] on array (CID #701816)

                                [ Philippe Saint-Pierre <stpere@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev46933
Commit:      75a80fb34167f42bdcc1d0e955c186122d3dda3d
URL:         http://cgit.haiku-os.org/haiku/commit/?id=75a80fb
Author:      Philippe Saint-Pierre <stpere@xxxxxxxxx>
Date:        Wed Feb 26 02:31:08 2014 UTC

Ticket:      https://dev.haiku-os.org/ticket/701816

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/kits/device/USBInterface.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/kits/device/USBInterface.cpp b/src/kits/device/USBInterface.cpp
index f3f3b28..b2d4472 100644
--- a/src/kits/device/USBInterface.cpp
+++ b/src/kits/device/USBInterface.cpp
@@ -250,7 +250,7 @@ BUSBInterface::_UpdateDescriptorAndEndpoints()
                // Delete old endpoints
                for (int32 i = 0; i < fDescriptor.num_endpoints; i++)
                        delete fEndpoints[i];
-               delete fEndpoints;
+               delete[] fEndpoints;
        }
 
        fEndpoints = new(std::nothrow) BUSBEndpoint 
*[fDescriptor.num_endpoints];


Other related posts:

  • » [haiku-commits] haiku: hrev46933 - src/kits/device - stpere