git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix garbage collection (Modules/gcmodule.c:380: move_unreachable: Assertion
[enigma2.git]
/
lib
/
python
/
connections.cpp
diff --git
a/lib/python/connections.cpp
b/lib/python/connections.cpp
index 00f33f71bab32565b8cac1e15e995243c8582057..864e55240081c6c083520d7efd2249bf67497c06 100644
(file)
--- a/
lib/python/connections.cpp
+++ b/
lib/python/connections.cpp
@@
-20,10
+20,12
@@
void PSignal::callPython(ePyObject tuple)
}
}
-PyObject *PSignal::get()
+PyObject *PSignal::get(
bool steal
)
{
- if (!m_list)
- m_list = PyList_New(0);
- Py_INCREF(m_list);
+ if (!steal) {
+ if (!m_list)
+ m_list = PyList_New(0);
+ Py_INCREF(m_list);
+ }
return m_list;
}