You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2014/07/17 21:52:09 UTC
svn commit: r1611454 - /qpid/proton/trunk/proton-c/bindings/python/proton.py
Author: rhs
Date: Thu Jul 17 19:52:09 2014
New Revision: 1611454
URL: http://svn.apache.org/r1611454
Log:
fixed leaked delivery wrappers when using events
Modified:
qpid/proton/trunk/proton-c/bindings/python/proton.py
Modified: qpid/proton/trunk/proton-c/bindings/python/proton.py
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/python/proton.py?rev=1611454&r1=1611453&r2=1611454&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/python/proton.py (original)
+++ qpid/proton/trunk/proton-c/bindings/python/proton.py Thu Jul 17 19:52:09 2014
@@ -2891,12 +2891,13 @@ class Delivery(object):
self.remote = Disposition(pn_delivery_remote(self._dlv), False)
self.link._deliveries.add(self)
+ def __del__(self):
+ pn_delivery_set_context(self._dlv, None)
+
def _release(self):
"""Release the underlying C Engine resource."""
if self._dlv:
- pn_delivery_set_context(self._dlv, None)
pn_delivery_settle(self._dlv)
- self._dlv = None
@property
def tag(self):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org