activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r543961 - /activemq/activemq-cpp/trunk/src/main/activemq/transport/IOTransport.h
Date Sun, 03 Jun 2007 18:54:51 GMT
Author: tabish
Date: Sun Jun  3 11:54:50 2007
New Revision: 543961

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

add delete of command in the fire function if an exception is caught.

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/transport/IOTransport.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/transport/IOTransport.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/transport/IOTransport.h?view=diff&rev=543961&r1=543960&r2=543961
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/transport/IOTransport.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/transport/IOTransport.h Sun Jun  3 11:54:50
2007
@@ -124,7 +124,11 @@
 
                 listener->onCommand( command );
 
-            }catch( ... ){}
+            }catch( ... ){
+                try{
+                    delete command;
+                } catch( ... ) {}
+            }
         }
 
     public:



Mime
View raw message