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 | 2d9dafc09d20dff674959c6e86756236c7bb1f94 (patch) | |
| tree | e5450acc14e9d7035906daf356b30f93574b6e87 /cpp/bindings | |
| parent | 3d708233571b883789ca15aeea7003a8de7ce1f3 (diff) | |
| download | qpid-python-2d9dafc09d20dff674959c6e86756236c7bb1f94.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/qpid@1228226 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings')
| -rw-r--r-- | cpp/bindings/swig_python_typemaps.i | 14 |
1 files changed, 0 insertions, 14 deletions
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); } |
