diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-05 15:38:41 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-18 19:45:06 -0300 |
commit | 579e99ea8c58f3a7d11d5e7549cb3383a68500a5 (patch) | |
tree | 8e3ed6a1520e764d4c9c327e78b8d6daebf64c19 /libshiboken | |
parent | 1a259891dfe104c204da3ae06bc3e3924e98de26 (diff) |
Do not incref and decref the python dict reference on python to c++ conversions.
Diffstat (limited to 'libshiboken')
-rw-r--r-- | libshiboken/conversions.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h index 38605c4da..8d9cddf1f 100644 --- a/libshiboken/conversions.h +++ b/libshiboken/conversions.h @@ -571,16 +571,11 @@ struct Converter_std_map PyObject* value; Py_ssize_t pos = 0; - Py_INCREF(pyobj); - while (PyDict_Next(pyobj, &pos, &key, &value)) { result.insert(typename StdMap::value_type( Converter<typename StdMap::key_type>::toCpp(key), Converter<typename StdMap::mapped_type>::toCpp(value))); } - - Py_DECREF(pyobj); - return result; } }; |