From 2d9dafc09d20dff674959c6e86756236c7bb1f94 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 6 Jan 2012 15:15:11 +0000 Subject: QPID-3333: Fix reference counting for Variants, Maps, Lists; patch from Anthony Foglia git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1228226 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/swig_python_typemaps.i | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'cpp/bindings') diff --git a/cpp/bindings/swig_python_typemaps.i b/cpp/bindings/swig_python_typemaps.i index 18bfd48f72..e99ce65254 100644 --- a/cpp/bindings/swig_python_typemaps.i +++ b/cpp/bindings/swig_python_typemaps.i @@ -134,8 +134,6 @@ typedef int Py_ssize_t; result = 0; } - if (result) - Py_INCREF(result); return result; } @@ -323,32 +321,22 @@ typedef int Py_ssize_t; */ %typemap(out) qpid::types::Variant::Map { $result = MapToPy(&$1); - if ($result) - Py_INCREF($result); } %typemap(out) qpid::types::Variant::Map& { $result = MapToPy($1); - if ($result) - Py_INCREF($result); } %typemap(out) qpid::types::Variant::List { $result = ListToPy(&$1); - if ($result) - Py_INCREF($result); } %typemap(out) qpid::types::Variant::List& { $result = ListToPy($1); - if ($result) - Py_INCREF($result); } %typemap(out) qpid::types::Variant& { $result = VariantToPy($1); - if ($result) - Py_INCREF($result); } /* @@ -356,8 +344,6 @@ typedef int Py_ssize_t; */ %typemap(out) qpid::types::UUID & { $result = UuidToPy($1); - if ($result) - Py_INCREF($result); } -- cgit v1.2.1