aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
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
parent1a259891dfe104c204da3ae06bc3e3924e98de26 (diff)
Do not incref and decref the python dict reference on python to c++ conversions.
Diffstat (limited to 'libshiboken')
-rw-r--r--libshiboken/conversions.h5
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;
}
};