diff options
| author | Gordon Sim <gsim@apache.org> | 2012-01-06 15:15:11 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2012-01-06 15:15:11 +0000 |
| commit | b2132b410f59301c3082320b3264040deb056108 (patch) | |
| tree | c94fc4d87fe5d9ef42097e47ef2525a77d8e6d30 /qpid/cpp/bindings | |
| parent | 1627f7b0764c3899790f484db6fdb1c3a7e7015f (diff) | |
| download | qpid-python-b2132b410f59301c3082320b3264040deb056108.tar.gz | |
QPID-3333: Fix reference counting for Variants, Maps, Lists; patch from Anthony Foglia
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1228226 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings')
| -rw-r--r-- | qpid/cpp/bindings/swig_python_typemaps.i | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/qpid/cpp/bindings/swig_python_typemaps.i b/qpid/cpp/bindings/swig_python_typemaps.i index 18bfd48f72..e99ce65254 100644 --- a/qpid/cpp/bindings/swig_python_typemaps.i +++ b/qpid/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); } |
