Author: nmittler Date: Sat Dec 16 06:27:54 2006 New Revision: 487805 URL: http://svn.apache.org/viewvc?view=rev&rev=487805 Log: [AMQCPP-27] Applying patch for mismatched new[] and delete[]
Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/io/ByteArrayInputStreamTest.h incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/GuidTest.h Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp?view=diff&rev=487805&r1=487804&r2=487805 ============================================================================== --- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp (original) +++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp Sat Dec 16 06:27:54 2006 @@ -42,7 +42,7 @@ // assign isn't passing ownership, just copying, delete // the allocated buffer. - delete buffer; + delete [] buffer; break; } Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/io/ByteArrayInputStreamTest.h URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/io/ByteArrayInputStreamTest.h?view=diff&rev=487805&r1=487804&r2=487805 ============================================================================== --- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/io/ByteArrayInputStreamTest.h (original) +++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/io/ByteArrayInputStreamTest.h Sat Dec 16 06:27:54 2006 @@ -84,7 +84,7 @@ stream_a.close(); - delete buffer; + delete [] buffer; } }; Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/GuidTest.h URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/GuidTest.h?view=diff&rev=487805&r1=487804&r2=487805 ============================================================================== --- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/GuidTest.h (original) +++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/util/GuidTest.h Sat Dec 16 06:27:54 2006 @@ -71,7 +71,7 @@ CPPUNIT_ASSERT( guid == bytesGUID ); - delete bytes; + delete [] bytes; Guid bytesGUID2; bytesGUID2.fromBytes((const unsigned char*)guid);