activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r908988 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp
Date Thu, 11 Feb 2010 14:23:49 GMT
Author: tabish
Date: Thu Feb 11 14:23:48 2010
New Revision: 908988

URL: http://svn.apache.org/viewvc?rev=908988&view=rev
Log:
Fix a memory leak in the unit test.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp?rev=908988&r1=908987&r2=908988&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp Thu Feb 11 14:23:48
2010
@@ -52,7 +52,7 @@
 
         virtual void close() throw( decaf::io::IOException ) {
             flush();
-            delete contents;
+            delete [] contents;
             contents = NULL;
         }
 



Mime
View raw message