summaryrefslogtreecommitdiffstats
path: root/libshiboken/conversions.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-03-05 15:38:41 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-03-18 19:45:06 -0300
commit579e99ea8c58f3a7d11d5e7549cb3383a68500a5 (patch)
tree8e3ed6a1520e764d4c9c327e78b8d6daebf64c19 /libshiboken/conversions.h
parent1a259891dfe104c204da3ae06bc3e3924e98de26 (diff)
downloadshiboken-579e99ea8c58f3a7d11d5e7549cb3383a68500a5.tar.gz
shiboken-579e99ea8c58f3a7d11d5e7549cb3383a68500a5.tar.xz
shiboken-579e99ea8c58f3a7d11d5e7549cb3383a68500a5.zip
Do not incref and decref the python dict reference on python to c++ conversions.
Diffstat (limited to 'libshiboken/conversions.h')
-rw-r--r--libshiboken/conversions.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h
index 38605c4d..8d9cddf1 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;
}
};