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 2007/03/16 21:29:36 UTC

svn commit: r519133 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireSessionInfo.h

Author: tabish
Date: Fri Mar 16 13:29:35 2007
New Revision: 519133

URL: http://svn.apache.org/viewvc?view=rev&rev=519133
Log:
http://issues.apache.org/activemq/browse/AMQCPP-91

Fix SessionInfo memory leak

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireSessionInfo.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireSessionInfo.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireSessionInfo.h?view=diff&rev=519133&r1=519132&r2=519133
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireSessionInfo.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireSessionInfo.h Fri Mar 16 13:29:35 2007
@@ -50,7 +50,9 @@
             transaction = NULL;
             sessionInfo = NULL;
         }
-        virtual ~OpenWireSessionInfo() {}
+        virtual ~OpenWireSessionInfo() {
+            delete sessionInfo;
+        }
 
         /**
          * Gets the Connection Id of the Connection that this consumer is