Author: chug
Date: Thu Jan  8 21:51:49 2015
New Revision: 1650389

URL: http://svn.apache.org/r1650389
Log:
QPID-6298: [C++ Messaging] Closing sender/receiver frees proton link.
Tested with proton 0.9, 0.7, and 0.6.


Modified:
    qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp
    qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp?rev=1650389&r1=1650388&r2=1650389&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp Thu Jan  8 
21:51:49 2015
@@ -39,7 +39,7 @@ ReceiverContext::ReceiverContext(pn_sess
     capacity(0), used(0) {}
 ReceiverContext::~ReceiverContext()
 {
-    //pn_link_free(receiver);
+    pn_link_free(receiver);
 }
 
 void ReceiverContext::setCapacity(uint32_t c)

Modified: qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp?rev=1650389&r1=1650388&r2=1650389&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp Thu Jan  8 
21:51:49 2015
@@ -49,7 +49,7 @@ SenderContext::SenderContext(pn_session_
 
 SenderContext::~SenderContext()
 {
-    //pn_link_free(sender);
+    pn_link_free(sender);
 }
 
 void SenderContext::close()



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to