summaryrefslogtreecommitdiffstats
path: root/libshiboken/conversions.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-09 10:25:49 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-07-09 11:05:10 -0300
commit0984ab74d8861038882b2c2aabbe0c7a2f5da797 (patch)
tree5ca1bfe7dd8a092b2f1c60feb50da0ed95ca7567 /libshiboken/conversions.h
parent962613407aa0c793ed5b96dfd2cc494c877d952f (diff)
downloadshiboken-0984ab74d8861038882b2c2aabbe0c7a2f5da797.tar.gz
shiboken-0984ab74d8861038882b2c2aabbe0c7a2f5da797.tar.xz
shiboken-0984ab74d8861038882b2c2aabbe0c7a2f5da797.zip
Fixed ref leak on list cpp conversion.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/conversions.h')
-rw-r--r--libshiboken/conversions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h
index 38a90f5c..9ea8fce7 100644
--- a/libshiboken/conversions.h
+++ b/libshiboken/conversions.h
@@ -580,7 +580,7 @@ struct StdListConverter
StdList result;
for (int i = 0; i < PySequence_Size(pyobj); i++) {
- PyObject* pyItem = PySequence_GetItem(pyobj, i);
+ AutoDecRef pyItem(PySequence_GetItem(pyobj, i));
result.push_back(Converter<typename StdList::value_type>::toCpp(pyItem));
}
return result;