activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r881833 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp
Date Wed, 18 Nov 2009 16:53:12 GMT
Author: tabish
Date: Wed Nov 18 16:53:12 2009
New Revision: 881833

URL: http://svn.apache.org/viewvc?rev=881833&view=rev
Log:
Deallocate the ByteArrayOutputStream in clearBody along with the other streams.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp?rev=881833&r1=881832&r2=881833&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp
Wed Nov 18 16:53:12 2009
@@ -120,8 +120,9 @@
     // Invoke base class's version.
     ActiveMQMessageTemplate<cms::StreamMessage>::clearBody();
 
-    this->dataIn.reset(NULL);
-    this->dataOut.reset(NULL);
+    this->dataIn.reset( NULL );
+    this->dataOut.reset( NULL );
+    this->bytesOut.reset( NULL );
     this->remainingBytes = -1;
 }
 



Mime
View raw message