You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/11/18 17:53:12 UTC

svn commit: r881833 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp

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;
 }