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/06/03 20:54:51 UTC

svn commit: r543961 - /activemq/activemq-cpp/trunk/src/main/activemq/transport/IOTransport.h

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: